How can I set the ability to prevent the browser from automatically saving form information, such as user name, password?
Now many browsers have automatic filling function, I used the input on the autocomplete= "off", but in some browsers or was remembered the username and password, is there any more effective and easy way to prevent the browser to remember the user name and password?
1. Remember the password for the browser
1. First of all, most browsers are based on the form field type= "password" to determine the password field, so for this situation can take the "Dynamic Set Password Field" method:
Copy Code code as follows:
<input type= "text" name= "password" onfocus= "this.type= ' Password '"/>
Explanation: When this document box gets the focus, it turns it into a password field, so the browser won't remember the password, but in order to be more complete, you can also add the autocomplete= "off" attribute.
2. In the OnLoad event, the value of the password box is emptied, namely:
Copy Code code as follows:
<script language= "JavaScript" >
Window.load = function () {
document.getElementById (' Password domain ID '). value= ';
};
</script>
3. The page uses the HTTPS protocol because HTTPS does not store information on the form.
4. Use Flash to make the login form, this situation browser will not record form information.
5. A sick one, you can change the type= "password" to type= "text", because type is not password will not appear remember the password function, then set a variable such as: Var val= "" or set a hidden domain < Input type= "hidden" Name= "Val", and finally use Onpropertychange to replace the password with a line of dots, and assign the value to Val, and then return the Val value when submitted, due to the same effect as the * number. Users are not to be seen.
2, for some browser plug-ins automatic filling function
That's a bit of a hassle. I think this should be the plug-in to remember the value of the form field name, and then to fill out the table, in this case, I think you can dynamically change the value of the name when the page is loaded, when the form is submitted to the value of the form to combine the correct corresponding values and then submit. This is not verified, but my personal thoughts. You can try.
If the above methods can not satisfy you, then I have no way.
Suggestions:
Try to clear the corresponding domain name cookies, the browser should be based on cookies to remember the username password.
(No, some browsers are remembered after you submit the form, based on the value you submitted)
(Some browsers do not record cookies in this comparison headache by the way, how to erase the value entered in the input?) I want to be able to enter a value like the bank does not appear again
The browser remembers that the password is implemented by looking for an input box with type password, and then a previous input box to remember as the username. So the solution to this problem is to add a type text to the input box between the username input and password input to set the CSS property display to none.