开发者

Building a Form that allows the Browser to Prepopulate with the Username/Email & Password

开发者 https://www.devze.com 2023-01-09 13:23 出处:网络
Users are complaining about my site, saying that th开发者_如何学Goey Sign In form is \"not allowing the Firefox and Chrome browsers to \"remember password\".You should allow people to remember the pas

Users are complaining about my site, saying that th开发者_如何学Goey Sign In form is "not allowing the Firefox and Chrome browsers to "remember password". You should allow people to remember the password in their browser--it will come in handy in the future on future visits."

Any ideas why this would be the case?


Yes indeed. There is a non-standard, but recognized autocomplete attribute that can be applied to form elements.

Check in your HTML for something like this:

<input type="password" name="the-password" id="the-password" autocomplete="off"/>

It can also be set by Javascript:

var thePassword = document.getElementById('the-password');
thePassword.setAttribute("autocomplete", "off"); 
0

精彩评论

暂无评论...
验证码 换一张
取 消