我可以禁止Web浏览器自动完成? [英] 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的:<一href=\"https://developer.mozilla.org/en/How%5Fto%5FTurn%5FOff%5FForm%5FAutocompletion#How%5Fto%5FTurn%5FOff%5Fthe%5FAutocompletion%5FFeature\">How要关闭表格自动完成
Mozilla: How to Turn Off Form Autocompletion
适用的浏览器版本:网景
6.2(Mozilla的0.9.4)或更高版本。 IE 5或更高版本。 ...
Applicable browser versions: Netscape 6.2 (Mozilla 0.9.4) or later. IE 5 or later. ...
此表格属性不是任何部分
网络标准,但首次推出
在微软的Internet Explorer 5中。
网景在6.2版本中引入了它
- 在以前的版本中,这个属性被忽略。 autocomplete属性
在银行的坚持加入
与发卡 - 但从来没有其次
通过对到达标准
认证。
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.
这篇关于我可以禁止Web浏览器自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!