How to stop the browser from remembering the password with Input type=password with HTML?

Spread the love

To stop the browser from remembering the password with Input type=password with HTML, we set the autocomplete attribute.

For instance, we write

<input type="password" autocomplete="off" />

to add a password input with the autocomplete attribute set to off to disable saving passwords in thge autocomplete drop down.

Leave a Reply

Your email address will not be published. Required fields are marked *