我可以禁止网络浏览器自动完成吗? [英] Can I disallow web browser autocomplete?
问题描述
您知道浏览器如何自动完成文本框吗?显然,这让用户感到困惑.他们将其视为只有有限选项的简短列表.
You know how browsers autocomplete text boxes? Apparently this confuses users. They see it as a short list with only limited options.
有人知道如何禁用自动完成吗?
Does anyone know how to disable autocomplete?
推荐答案
禁用自动完成的正确方法是这样的:
The proper way to disable autocomplete is like this:
<input type="text" name="foo" autocomplete="off"/>
或
<form autocomplete="off" ... >
MSDN:自动完成属性
Mozilla:如何关闭表单自动完成
适用浏览器版本:Netscape6.2 (Mozilla 0.9.4) 或更高版本.IE 5 或更高版本....
Applicable browser versions: Netscape 6.2 (Mozilla 0.9.4) or later. IE 5 or later. ...
此表单属性不属于任何网络标准,但首先被引入在 Microsoft 的 Internet Explorer 5 中.Netscape 在 6.2 版本中引入了它-- 在以前的版本中,此属性被忽略.自动完成属性在银行的坚持下添加和发卡机构——但从未跟随通过达到标准认证.
This form attribute is not part of any web standards but was first introduced in Microsoft's Internet Explorer 5. Netscape introduced it in version 6.2 -- in prior versions, this attribute is ignored. The autocomplete attribute was added at the insistance of banks and card issuers -- but never followed through on to reach standards certification.
这篇关于我可以禁止网络浏览器自动完成吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!