开发者

Browser offering to save passwords on HTML FORMS?

I have a sign up page on my website. Now when a user signs up, the broswer will offer to remember the password and email on the sign up form. Which is not what I want at all, as I only want it where they will login.

Is there anyway to disable this, or is it out of my control.

<input type="post" autocomplete="off" />
开发者_StackOverflow社区

autocomplete does not work.

Thanks,


You're setting the attribute on the <input> element - this should be an attribute of the <form> element.


A number of solutions can be found here:

Disable browser 'Save Password' functionality

Your best bet is probably using JavaScript to bypass the default form submission mechanism.


There isn't a completely bulletproof way to turn autocomplete off.

autocomplete is a non-standard tag. So YMMV depending on the browser.

Try setting the attribute on the form tag instead of the input tag. I've had it work when specified on the form tag in the past.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜