Igor Igor - 1 year ago 113
HTML Question

How to prevent browser from caching form fields?

I have a

in a form field that gets populated by the user. However currently (in Firefox 10) the user can navigate away from the page, then come back, and the input will be populated with its previous value. I think this creates for a confusing user experience, and would like to prevent it.

Is there a way to do this without manually resetting the value? I have tried changing the response to not cache as well as setting
with no luck.

Answer Source

Try with autocomplete="off", but it will not work with all browsers

PS: duplicate...

Stop browser from filling textboxes with details

Make page to tell browser not to cache/preserve input values

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download