如何在主要浏览器中禁用特定输入(或表单域)的自动完成功能?
最佳答案
Firefox 30 忽略密码的 autocomplete="off"
,而是选择提示用户密码是否应该存储在客户端上。注意以下commentary从 2014 年 5 月 5 日开始:
- The password manager always prompts if it wants to save a password. Passwords are not saved without permission from the user.
- We are the third browser to implement this change, after IE and Chrome.
根据Mozilla Developer Network文档中, bool 表单元素属性 autocomplete
防止表单数据被缓存在旧浏览器中。
<input type="text" name="foo" autocomplete="off" />
关于html - 如何禁用 Web 表单字段/输入标签上的浏览器自动完成功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58077563/