0

I have a login for like this:

enter image description here

As you see, my username and password are saved in those inputs. I want to know, is that possible to disable saving password property of the browser by JS or HTML or whatever?


Note: Using autocomplete attribute isn't useful to do that:

<form autocomplete="off" ...>
    <input name="username" placeholder="Email" type="email" autocomplete="off" />
</form>

As you see, both the form and the input have autocomplete="off" attribute, but still saving password happens.

Martin AJ
  • 6,261
  • 8
  • 53
  • 111
  • 1
    redirect('[here](http://stackoverflow.com/questions/32369/disable-browser-save-password-functionality)') – elreeda Jul 06 '16 at 10:49
  • @John Well the accepted answer in your link doesn't work for me. – Martin AJ Jul 06 '16 at 10:49
  • The accepted answer seems outdated, but this answer from the same question may work for you: http://stackoverflow.com/a/25111774/519413. Other than that I don't believe there is much you can do as the functionality is enabled at the browser level by the user – Rory McCrossan Jul 06 '16 at 10:58
  • @RoryMcCrossan Very and very good `:-)` I enjoyed. Just one thing: Why not using `style="display:none"` for that input instead of wrapping it into *div* ? – Shafizadeh Jul 06 '16 at 11:04

0 Answers0