开发者

How to keep initial form empty, ignore browser cache

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, s开发者_StackOverflow中文版uch that no matter what, the password input field will be empty? Thank you.


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

Example

<input type="text" name="user" autocomplete="off" value=""/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜