浏览器登录xx网站的时候会提示是否保存用户名和密码(可以设置浏览器不提示),如果点了保存,那么在网站的某些页面功能会自动填充保存的用户名和密码.
什么情况下回自动填充呢?很明显的会发现出现自动填充的页面肯定至少有一个type="password"的input框,知道问题就好处理了,下面是终极解决方案:
[color=red][b]<input id="password" type="text" οnfοcus="this.type='password'"/>[/b][/color]
[color=blue]将type="password"的input框type改成text,加上onfocus如上,在获取焦点时候将input置为password类型[/color]
什么情况下回自动填充呢?很明显的会发现出现自动填充的页面肯定至少有一个type="password"的input框,知道问题就好处理了,下面是终极解决方案:
[color=red][b]<input id="password" type="text" οnfοcus="this.type='password'"/>[/b][/color]
[color=blue]将type="password"的input框type改成text,加上onfocus如上,在获取焦点时候将input置为password类型[/color]