大盗零妖8
2021-02-01 18:17
采纳率: 75%
浏览 9
已结题

如何禁用浏览器自动完成网页表单字段 / 输入标签?

How do you disable autocomplete in the major browsers for a specific input (or form field)?

转载于:https://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag

  • 好问题 提建议
  • 收藏

1条回答 默认 最新

  • cpongo6 2021-02-01 18:19
    已采纳

    Firefox 30 ignores autocomplete="off" for passwords, opting to prompt the user instead whether the password should be stored on the client. Note the following commentary from May 5, 2014:

    • 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.

    According to Mozilla developer documentation the form element attribute autocomplete prevents form data from being cached in older browsers.

    <input type="text" name="foo" autocomplete="off" />
    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题