"自动完成=关闭"不适用于Google Chrome浏览器 [英] "AutoComplete=Off" not working on Google Chrome Browser
问题描述
< form 我知道在Stackoverflow上有一个类似的问题,但没有一个解决方案适用于我。 autocomplete =offid =search_formmethod =postaction =>
< input autocomplete =offtype =text/>
< / form>
正如您所看到的,我将 autocomplete = off
在表单和输入字段上,但Google Chrome仍会显示此自动完成列表。这不会发生在Firefox和Safari等其他浏览器中。
除了放置 autocomplete = off
在表单标签上
这可能是Google Chrome上的一个错误,您无法通过创建隐藏输入来作弊过度。
< form autocomplete =offid =search_form自动完成功能将获得第一个输入文本以填充数据。 method =postaction =>
< input type =textstyle =display:none/>
< input autocomplete =offtype =text/>
< / form>
I know there is one similar question on Stackoverflow, but none of the solution there worked for me.
<form autocomplete="off" id="search_form" method="post" action="">
<input autocomplete="off" type="text" />
</form>
As you can see, I put autocomplete=off
on BOTH the form and the input field, but Google Chrome still displays this autocompletion list. This doesn't happen in other browsers like Firefox and Safari.
Any other solution other than putting autocomplete=off
on the form tag??
It may be a bug on Google Chrome, you can't cheat by create an hidden input over. Auto complete feature will get the first input text to fill data.
<form autocomplete="off" id="search_form" method="post" action="">
<input type="text" style="display:none" />
<input autocomplete="off" type="text" />
</form>
这篇关于"自动完成=关闭"不适用于Google Chrome浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!