How to 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...
https://www.czetsuyatech.com/2011/02/web-clear-input-fields-values.html
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"
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">
1 comment
it works, thanks
Post a Comment