Clear the values of html input fields no cache

There are times when you don't want to show the values previously entered and process of a certain html form. For example on a public PC that is used by anybody, if you type in your email address on any email site like gmail, yahoo you will notice that double clicking on the textbox will show all the values entered. Sometimes even if you clear the cache, history etc.

If you're coding and you don't want that behavior then add this tag in your input control: autocomplete="off"
<input type="text" class="bordered" autocomplete="off" id="username" maxlength="50" size="30" value="" name="username">
Clear the values of html input fields no cache Clear the values of html input fields no cache Reviewed by Edward Legaspi on Thursday, February 17, 2011 Rating: 5

1 comment:

Anonymous said...

it works, thanks

Powered by Blogger.