你如何在Web表单字段/输入标记禁止浏览器自动完成? [英] How do you disable browser Autocomplete on web form field / input tag?

查看:339
本文介绍了你如何在Web表单字段/输入标记禁止浏览器自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何禁用自动完成在各大浏览器的特定输入(或表单字段)?

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

推荐答案

火狐30搭理自动完成=关闭的密码,选择加入提示用户,而不是是否密码应存储在客户机上。请注意以下评论从2014年5月5日:

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:


      
  • 如果它要保存密码,该密码管理器的总是的提示。密码不会保存未经用户许可的。

  •   
  • 我们是第三浏览器来实现这种变化,IE和Chrome浏览器后。

  •   
  • 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的开发者文档表单元素属性自动完成 prevents从旧的浏览器被缓存的表单数据。

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" />

这篇关于你如何在Web表单字段/输入标记禁止浏览器自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆