Question

So, once more the autocomplete story.. I have read the old posts, googled my ass off and this is my last resort.
Everywhere you look people are stating to use autocomplete="off" to prevent your browser from prompting to save passwords. Specially now that HTML5 has accepted it in its standards.

Unfortunately that doesn't quite work in chrome atleast

<form method="POST" action="<whateverlink>" accept-charset="UTF-8" autocomplete="off">

This does not prevent the browser prompting to store my credentials.

  • I tried emptying the fields after building up the page, no avail.
  • I tried the autocomplete="off"
  • I tried removing the outerHTML trick
  • I tried to add autocomplete="off" to all inputs through jquery after the page loaded

I know theres a trick to overwrite the background with a solid color, but seeing as I am using a gradient on my forms it still looks ugly as heck using that trick.

Google has been discussing this for years and finally they have made it so that the text color also changes.. thats something..

Reason for not letting this go is two fold.
1. its ugly as heck compared to the rest of my beautiful form
2. its convenient enough to remember usernames, why even have passwords if you're going to store them anyways..

Again sorry for starting about this subject again, the title "the everlasting story" is quite fitting hehe

Chrome Version 34.0.1847.131 m
It states its up to date :)

Was it helpful?

Solution

For future references for people also brought to their knees by this issue.

It seems that the workaround works and requires minimal effort + works on any browser out there..

On my login form I have added a field with these specs:

  • display:none
  • type="password"
  • name="

Before actually submitting the form I am emptying the password field and copying its values to the "display:none" password type field with a name other than password. This throws the browser off and he does not attempt to store the password!

Thanks to Cerbrus for pointing me in that direction!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top