How to disable browsers to save passwords through code (js/html)

online methods have been tried all over (such as: autocomplete= "off", onfocus= "this.type="password"", adding password hiding box, etc.), but for the relatively new Google browser, these methods are not effective, so I would like to ask God, is there any good solution!

Mar.13,2021

interesting question, now I can think of two ways:

1) use input [type=text] instead of input [type=password]. For the simulation under chrome, please refer to the following link

.

How to disable Chrome's saved password prompt setting through JavaScript

How to make input type=" tel "work as type=" password "

2) the second is to modify browser settings. I don't know if this can be modified through js. (according to my investigation, it should not be possible)

Manage saved passwords

from-storing-password" rel=" nofollow noreferrer "> How to prevent a browser from storing password

How to Turn Off Form Autocompletion


basically there should be no solution. If you really mind, you can consider several options:

  1. uses a password box, but name changes every time, such as generating a random (but regular) name with js. The backend can get this value according to the rules, and even if the browser saves the password, it will not be applied next time.
  2. do not use type=password, to use ordinary text boxes, use js to transform the input characters, can not see the plaintext, when submitted back to the foreground or background.
  3. use other password components without input, such as a combination of several mouse clicks on a mobile phone.

I think you might as well simulate a password box yourself, using input type='text'

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e579a7-44c84.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e579a7-44c84.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?