1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

reset form, help!

Discussion in 'Web Design & Development' started by GARETH86B, Jul 10, 2006.

Thread Status:
Not open for further replies.
  1. GARETH86B

    GARETH86B Thread Starter

    Joined:
    May 4, 2003
    Messages:
    147
    im just creating a website which has an iframe in it which loads a login page inside it.

    i would like the username and password text boxes to clear once the submit button is pressed.

    ive found a few scripts such as onclick="formname.reset()" but it clears the form before the login details are checked so it says no username and password was entered.

    the form name is 'login'

    thanks,
    gaz
     
  2. haswalt

    haswalt

    Joined:
    Nov 22, 2004
    Messages:
    414
    create a simple javascript function to take the data out of the inputs and then clear them.

    erm let me think, i'll get back to this when i remember....
     
  3. covert215

    covert215 Banned

    Joined:
    Apr 22, 2006
    Messages:
    2,595
    Don't use onclick. Just put login.reset() after the POST.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - reset form help
  1. howard.a.s
    Replies:
    5
    Views:
    492
  2. bobzani
    Replies:
    0
    Views:
    754
  3. brentfuller0
    Replies:
    3
    Views:
    353
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/482145

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice