禁用谷歌浏览器的自动填充/自动填充/建议 [英] Disable Google Chrome Autocomplete / Autofill / Suggestion

查看:92
本文介绍了禁用谷歌浏览器的自动填充/自动填充/建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁用google chrome自动完成功能/自动填充功能/使用密码建议
与autocomplete ="off"类似的功能(此功能不起作用).

I want to disable google chrome autocomplete / autofill / use password suggestion
Something similar with autocomplete="off" (this one is not working).

代码如下

loginpage.php

<form class="form-method" method="post">
    <span class="form-fill">
      <text>Username</text>
      <input placeholder="Username" required/>
      <text>Password</text>
      <input type="password" placeholder="Password" required/>
      <button type="submit"></button>
    </span>
</form>

anotherform.php

<form method="REQUEST" class="vp-method">
    <input type="password" maxlength="4" autocomplete="JUST STOP!"/>
    <button type="submit" placeholder="DVN Number">Validate</button>
</form>


如何使用javascript禁用此Google Chrome自动完成/建议/自动填充功能?

How to disable this google chrome autocomplete / suggestion / autofill WITHOUT using javascript?

注意:我知道重复的问题.这些建议都没有用(正如我现在输入的那样).

Note : I'm aware of duplicating question. And none of those suggestion is working (as I'm typing right now).

谢谢:)

推荐答案

Chrome不再支持autocomplete="off".改为使用autocomplete="new-password".
Mozilla链接

Chrome no longer supports autocomplete="off". Use autocomplete="new-password"instead.
Mozilla link

从文档中:

因此,许多现代浏览器不支持 autocomplete="off"用于登录字段:

For this reason, many modern browsers do not support autocomplete="off" for login fields:

如果网站为用户名和密码输入字段设置了autocomplete="off", 那么浏览器仍会记住该登录信息,如果 用户同意,下次浏览器会自动填充这些字段 用户访问页面.这是Firefox中的行为(自版本 38),Google Chrome(自34起)和Internet Explorer(自版本 11).

If a site sets autocomplete="off" for username and password input fields, then the browser will still offer to remember this login, and if the user agrees, the browser will autofill those fields the next time the user visits the page. This is the behavior in Firefox (since version 38), Google Chrome (since 34), and Internet Explorer (since version 11).

如果作者想防止自动填写密码字段 在用户管理页面中,用户可以在其中指定新密码 除了他们自己以外的人,autocomplete="new-password"应该是 指定,尽管尚未完全实现对此的支持 浏览器了.

If an author would like to prevent the autofilling of password fields in user management pages where a user can specify a new password for someone other than themself, autocomplete="new-password" should be specified, though support for this has not been implemented in all browsers yet.

另一个解决方案是使用autocomplete="false".以下是一些可能会有所帮助的其他SO问题的链接:

Another solution is using autocomplete="false". Here are a few links to other SO questions that may help:

SO-禁用Chrome自动填充

SO-Chrome浏览器忽略了AutoComplete = Off

SO-Chrome 63+自动填充绕过

这篇关于禁用谷歌浏览器的自动填充/自动填充/建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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