TextBox密码模式自行填充
我有一个网站,用户输入登录名和密码的组合即可进入。 我有其他一些页面,用户可以在其中更改密码。 我在密码模式下添加了 3 个文本框(实际、新和确认)。
奇怪的是,第一个文本框会自动填充我登录时输入的密码,该密码存储在 Firefox 中。 如果我在 IE 上执行此操作(我没有保存密码),则不会发生这种情况。
另外,如果我更改文本框的模式,这个问题就会完全解决。
我在这里错过了什么吗?我显然不希望自动填写密码,这会剥夺文本框的全部用途。
问候,
I have a website where the user enters a combinations of login and password to enter.
I have some other page where the user has the ability to change the password.
I added there 3 textboxs in password mode (actual, new, and confirm).
The odd thing is that the first textbox is being filled automatically with the password that i enter on login and that is stored in Firefox.
If i do this on IE (where i don't have the password saved) this doesn't happen.
Also, this issue completely solves itself if i change the mode on the textboxs.
Am i missing something here? I obvisouly don't want the password to be filled automatically which would take away the whole purpose of the textbox.
Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 autocomplete="off" 属性添加到您不希望浏览器填写的任何字段。
Add the autocomplete="off" attribute to any fields that you don't want the browser to fill out.
添加
autocomplete="off"
作为属性。Add
autocomplete="off"
as an attribute.