如何在输入密码字段时禁用“使用密码:”? [重复]

[英]How to disable 'Use password for:' when typing in password field? [duplicate]


This question already has an answer here:

这个问题在这里已有答案:

I have an input:

我有一个输入:

<input type="password" id="confirmPassoword" autocomplete="off"/>

When I am typing into this input in Google Chrome, I get the message the same as here:

当我在Google Chrome中输入此输入时,我收到的信息与此处相同:

enter image description here

How can I get rid of this?

我怎么能摆脱这个?

3 个解决方案

#1


1  

If it is a new password screen, then this should obviously work

如果它是一个新的密码屏幕,那么这显然是有效的

<input type="password" id="confirmPassoword" autocomplete="new-password" />

#2


0  

I believe this is built in and dont this can be blocked from chrome. i know the user can disable it but i dont think you can rule it to block it out.

我相信这是内置的,不要这可以阻止铬。我知道用户可以禁用它,但我不认为你可以裁定阻止它。

#3


0  

I believe there are two ways that Chrome helps users with forms. One is using Autocomplete to pre-populate fields and the other is Autofill which allows you to select items from a dropdown to populate the form.

我相信Chrome可以通过两种方式帮助用户使用表单。一种是使用自动填充功能预填充字段,另一种是自动填充功能,允许您从下拉列表中选择项目以填充表单。

autocomplete="off" will prevent the first whilst autocomplete="false" will disable both autocomplete and autofill

autocomplete =“off”将阻止第一个,而autocomplete =“false”将禁用自动完成和自动填充


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2016/08/19/3a79c9186de69d20e6abd41552664e4.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号