How to Avoid Browser Username, Password Autofill

When the browser logs in to the xx website, it will prompt whether to save the user name and password (you can set the browser to not prompt), if you click Save, the saved user name and password will be automatically filled in some page functions of the website

. What about filling? Obviously, you will find that the page where auto-filling appears must have at least one input box of type="password". It is easy to deal with the problem. The following is the ultimate solution:

<input id="password" type="text " onfocus="this.type='password'"/> Change

the input box type of type="password" to text, add onfocus as above, and set the input to password type when getting the focus

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326995851&siteId=291194637