python小菜 2008-08-05 16:22 采纳率: 0%
浏览 668
已采纳

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

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

  • 写回答

28条回答 默认 最新

  • 北城已荒凉 2008-08-05 16:24
    关注

    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" />
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(27条)

报告相同问题?

悬赏问题

  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable