Question

I have a form with a password field. When the page loads, the password field automatically fills with the 'stored' password in my browser. Is there a way to disable cache on a field, such that no matter what, the password input field will be empty? Thank you.

Was it helpful?

Solution

I think it's browser implementation dependent, but you can try adding the autocomplete attribute.

Example

<input type="text" name="user" autocomplete="off" value=""/>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top