Preventing autofilling with autocomplete new-password
If an input
element has the attribute value autocomplete="new-password"
, browsers can suggest securely-generated passwords and prevent autofilling of password fields.
<input autocomplete="new-password" type="password" />
This site is ad-free and doesn’t use trackers. If you’d like to support my writing, I’d love if you could buy me a coffee.