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 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">

1 Comments

Post a Comment

Post a Comment

Previous Post Next Post
NERV Open Source

Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.

Explore NERV on GitHub →