Disable Google Chrome Autocomplete / Autofill / Suggestion
I tried to confuse the browser so that it wouldn't know which input field to fill, and this seems to be cross platform - can't test it on explorer thouth...
Try this, or something along these lines:
<input type="password" class="bigText login" name="hiddenFieldToStopBrowserAutofill" style = "height : 0px; width : 0px; border : 0px"/>
From what I saw, it only works if you specify the same class as another of the fields in the form ( in this case i have "bigText login" for both password and email address ) and then make it invisible in the way I described above. If you try to use "display = none" instead, it won't work.
I also tried some variations of value = "", value = " " and so on to stop the browser replacing the string with what it wants to force on the page, but it didn't work... Saves you time trying that if you were hoping for a cleaner opton
Chrome no longer supports autocomplete="off"
. Use autocomplete="new-password"
instead.
Mozilla link
From the documentation:
For this reason, many modern browsers do not support
autocomplete="off"
for login fields:If a site sets
autocomplete="off"
for username and password input fields, then the browser will still offer to remember this login, and if the user agrees, the browser will autofill those fields the next time the user visits the page. This is the behavior in Firefox (since version 38), Google Chrome (since 34), and Internet Explorer (since version 11).If an author would like to prevent the autofilling of password fields in user management pages where a user can specify a new password for someone other than themself,
autocomplete="new-password"
should be specified, though support for this has not been implemented in all browsers yet.
Another solution is using autocomplete="false"
. Here are a few links to other SO questions that may help:
SO - Disabling Chrome Autofill
SO - Chrome Browser Ignoring AutoComplete=Off
SO - Chrome 63+ Autocomplete Bypass