胖鸭 2008-08-05 16:22
浏览 888
已采纳

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

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

  • 写回答

26条回答 默认 最新

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

报告相同问题?

悬赏问题

  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler