Clearing a form field when page goes back (html / javascript)

Posted by DomingoSL on Stack Overflow See other posts from Stack Overflow or by DomingoSL
Published on 2010-04-20T19:12:19Z Indexed on 2010/04/20 20:43 UTC
Read the original article Hit count: 193

Filed under:
|
|
|

Do you know when you use in a form the password field, like this:

<input type="password" name="pass">

And you do a GET or POST submit to the same page who have the form and if the user hit back in the browser the password field gets blank. Well thats good, but i need to get blank another form field when the user hit back. Thats because i asking for a captcha and the text field who hold the information entered by the user ramain fill when he hit back, but the captcha image change, and if i dont blank the field the user (sometimes) dont get that he needs to re-enter the captcha.

Thanks!

© Stack Overflow or respective owner

Related posts about password

Related posts about html