The browser stores the account password filled with chaos phenomenon

First get to know principle

The principle is very simple, as long as the browser remember your password after identifying a type for the text and then followed by a password

Before filling the default browser to remember the account password.

solution

1. The input type = "password" into input type = "text" and followed by the = οnfοcus "this.type = 'password'",

2. After completion of the password input box set in the document loading empty:
window = function .load () {
document.getElementById ( 'password field ID') value = '';.
};

3. between the username and password plus a hidden text box:
<INPUT type = "text" name = "name">
<INPUT type = "text" class = "hidden">
<INPUT type = "password" name = "pwd">

4. use HTML5 properties:
<pre name = "code" class = "HTML"> <INPUT type = "text" name = "name" AutoComplete = "OFF">
<INPUT type = "password" name = "Pass" AutoComplete = "OFF">

发布了25 篇原创文章 · 获赞 10 · 访问量 3万+

Guess you like

Origin blog.csdn.net/xj932956499/article/details/81745850