如何阻止 Chrome 预填充输入框? [英] How do I stop Chrome from pre-populating input boxes?

查看:24
本文介绍了如何阻止 Chrome 预填充输入框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

我试过设置 autocomplete="false" 但这没什么区别.

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

推荐答案

autocomplete="off" 在我们的网站上工作.

autocomplete="off" worked on our site.

这篇关于如何阻止 Chrome 预填充输入框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆