Home > Net >  How to prohibit the browser automatically fill password input box
How to prohibit the browser automatically fill password input box

Time:10-12

Consult the browser to remember account password, and then on another page in the two input box, not account password, but the browser will automatically fill in, remember the account password page on the face how to prohibit the browser don't fill in the account and password


CodePudding user response:

Baidu prohibited browser text box automatically populated

CodePudding user response:

reference 1st floor lovelj2012 response:
baidu prohibited browser text box automatically populated


Tried to use the autocomplete='off' the TextBox space seems to be invalid

CodePudding user response:

Autocomplete="new password -"

CodePudding user response:

With readonly="readonly" read-only property, js timer delay after a period of time to remove the input of the read-only attribute readonly, ok!


<script>
SetTimeout (function removeReadonly () {
Var username=document. GetElementById (" phone ");
Var password=document. GetElementById (" password ");
The username. RemoveAttribute (" readonly ");
Password. RemoveAttribute (" readonly ");
}, 20);
</script>
  • Related