2011-11-01 46 views
22

由于Chrome最近已升级,因此我开始看到消息“此网页已禁用此表单的自动填充功能”。当点击表格控件(OK,意外双击)时,在我的网站全部自动完成=“关闭”(我们正在讨论聊天室等浏览器真的不需要记住先前发送的消息)的地方。自动填充功能被禁用时出现Chrome丑陋消息

这是相当丑陋的,有人知道如何禁用此?我无法在网上找到很多信息,除了可以追溯到2010年的东西,只是说这是一个功能。事情是,它只是刚刚在最新版本上发生,与运行Chrome的另一台计算机相同。

任何想法?

干杯

+0

只注意到这个问题,今天以及... – jordanstephens

回答

43

只是偶然发现了同样的问题,发现一个简单的修复。

您必须将autocomplete属性直接添加到输入字段而不是整个表单。

此代码:

<form method="get" action="index.php"> 
    <input type="text" name="q" autocomplete="off"> 

这样就不会

<form method="get" action="index.php" autocomplete="off"> 
    <input type="text" name="q"> 
+0

@AlexB:完美的解决方案:) – Mujahid

+3

无法使用,所以请确保在添加到输入之后,不要在表单标签上保留自动填充。 – Ando

+0

谢谢@AlexB,工作完美:) –

-2

It Works for me :) 
 
Guys you just need to add this code under the form tag, please check below: 
 

 
<form> 
 
<!-- fake fields are a workaround for chrome autofill getting the wrong fields--> 
 
\t \t \t \t <input type="text" name="fakeusernameremembered" style="display: none;" /> 
 
\t \t \t \t <input type="password" name="fakepasswordremembered" style="display: none;" /> 
 
\t \t \t <!--It helps me to remove the autofill in Chrome--> 
 

 
.......... 
 

 
</form>