如何阻止Chrome预先填充输入框?

时间:2022-06-02 00:25:26

Is there some way I can stop Chrome from auto populating input boxes? I have a page with a Sign Up form and a Log In form. In Chrome, if a user has already signed up and they've come to this page to log in, the password input box on the sign up form is populated with their password. I would really like to force the sign up fields to never auto complete.

有什么方法可以阻止Chrome自动填充输入框?我有一个包含注册表单和登录表单的页面。在Chrome中,如果用户已经注册并且他们已到此页面登录,则注册表单上的密码输入框将填入其密码。我真的想强制注册字段永远不会自动完成。

I've tried setting autocomplete="false" but this makes no difference.

我尝试过设置autocomplete =“false”,但这没什么区别。

2 个解决方案

#1


24  

autocomplete="off" worked on our site.

autocomplete =“off”在我们的网站上工作。

#2


0  

You could simply use different field names.

您可以简单地使用不同的字段名称。

#1


24  

autocomplete="off" worked on our site.

autocomplete =“off”在我们的网站上工作。

#2


0  

You could simply use different field names.

您可以简单地使用不同的字段名称。