Building a Form that allows the Browser to Prepopulate with the Username/Email & Password
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");
精彩评论