这里先不说废话,我知道有4种方法,具体可以详细去试试看,针对不同的浏览器有不同的方法:
1.把input type=”password” 改成 input type=”text” 并在后面加上 onfocus=”this.type=’password’”,,
2.在文档加载完成后将密码输入框设置为空:
window.load = function(){ document.getElementById('密码域ID').value=''; }; 3.在用户名和密码之间加上一个隐藏的文本框:
<input type="text" name="name"><input type="hidden"> <input type="password" name="pass">
4.使用html5的属性:
<pre name="code" class="html"><input type="text" name="name" autocomplete="off"><input type="password" name="pass" autocomplete="off">欢迎大家补充!!
版权声明:本文为博主原创文章,未经博主允许不得转载。
有勇气并不表示恐惧不存在,而是敢面对恐惧克服恐惧