简体   繁体   中英

Prevent browsers to save id & password

I don't want my client to store their id and passwords in browsers, because the password field is an OTP.

I tried all the solutions of Prevent Browsers from storing passwords but nothing has worked for me

autocomplete="off" readonly onfocus="this.removeAttribute('readonly');"
autocomplete="new-password"
autocomplete="one-time-code"

These didn't worked.

I also created a hidden password field, it's not auto-filling the actual password field but on click of the password textbox browsers give suggestions which I don't want because it's an OTP.

Any other suggestions?

Try this link here, it should work for you gfg

#javascript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM