【发布时间】:2016-05-26 09:29:34
【问题描述】:
我的设置页面上有此密码更改表。现在,一些浏览器具有内置功能,可以检测我遇到问题的这种表单。在加载设置页面上,Firefox 显示旧密码字段已填写,这显然是用户登录的当前密码,而 chrome 显示旧密码字段为空,但当用户输入旧密码时,chrome 询问 用户密码:john(chrome 的自动填充)这是保存在 chrome 中的任何用户的密码。我想在我的脚本中禁用这些功能(而不是在浏览器中)。那可能吗 ? autocomplete=off 没有帮助。
<label>Old Password</label> <input type="password" name="oldpassword" id="oldpassword" placeholder="Old password">
<label>New Password</label> <input type="password" name="newpassword" id="newpassword" placeholder="New password">
<label>Confirm Password</label> <input type="password" name="newpassword2" id="newpassword2" placeholder="Confirm new password">
【问题讨论】:
标签: php google-chrome firefox passwords