如何在chrome中禁用保存密码提示 [英] how to disable save password prompt in chrome

查看:521
本文介绍了如何在chrome中禁用保存密码提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我几个小时后一直在寻找这个问题,但是找不到任何合适的解决方案来解决这个问题,问题是每次我保存表单值时我的页面上都有三个输入表单它要求我保存密码chrome如何使用JavaScript或查询解决此问题

I have been searching since couple of hours for this problem but not found any appropriate solution for this problem,the problem is I am having three input forms on my page every time I save the form values it ask me to save password in chrome how can I solve this problem using JavaScript or query

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

我试过 autocomplete ='off'但它不起作用

推荐答案

最好的方法是将密码类型更改为文本,并用星号或圆点替换字符喜欢。

Best way is to change your password type to text and replace the characters with asterisks or dots whatever you like.

change <input type="password" /> to <input type="text" id="password" style="-webkit-text-security: disc;"/>

还有其他选项:

input { -webkit-text-security: none; }
input { -webkit-text-security: circle; }
input { -webkit-text-security: square; }
input { -webkit-text-security: disc; /* Default */ }

这篇关于如何在chrome中禁用保存密码提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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