我相信您知道,大多数浏览器的一个功能是保存密码。现在,我有一个网站,用户可以在其中一个页面上更改密码。有没有办法让浏览器识别更改?
换句话说,当用户在某个字段中输入新密码时,我希望浏览器显示“保存新密码”对话框。有办法做到这一点吗?
显然,纯 html 解决方案是首选,但我很高兴听到用 Javascript 实现此目的的方法。
仅供参考,我正在工作的网站不需要很强的安全性。
As I'm sure you are aware, a feature on most browsers is that they save passwords. Now, I have a site where a user can change their password on one of the pages. Is there a way to get the browser to recognize the change?
In other words, the I want the browsers to bring up their "save new password" dialog when a user enters their new password in a certain field. Is there a way to do this?
Obviously, a pure html solution is preferred, but I'd be happy to hear of ways to do this in Javascript.
FYI, the site I am working does not require very strong security.
发布评论
评论(1)
它应该像
一样简单
It should be as simple as
<INPUT TYPE="password" AUTOCOMPLETE="on" ...