Disable autocomplete / autocomplete / suggestion Google Chrome

I want to disable google chrome autocomplete / autofill / use password

Something similar to autocomplete = "off" (this one doesn't work).

The code is as follows

loginpage.php

<form class="form-method" method="post"> <span class="form-fill"> <text>Username</text> <input placeholder="Username" required/> <text>Password</text> <input type="password" placeholder="Password" required/> <button type="submit"></button> </span> </form> 

anotherform.php

 <form method="REQUEST" class="vp-method"> <input type="password" maxlength="4" autocomplete="JUST STOP!"/> <button type="submit" placeholder="DVN Number">Validate</button> </form> 


How to disable this autocomplete / suggestion / autocomplete google chrome WITHOUT using javascript?

Note. I know a duplicate question. And none of these suggestions work (as I am printing right now).

Thanks:)

+5
source share
2 answers

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 the site sets autocomplete="off" for the username and password input fields, the browser will still offer to remember this login, and if the user agrees, the browser will automatically execute these fields the next time the user visits the page. This behavior is in Firefox (since version 38), Google Chrome (since 34) and Internet Explorer (since version 11).

If the author would like to prevent the automatic filling of password fields on the user management pages, where the user can specify a new password for someone other than himself, autocomplete="new-password" should be, but support for this was not implemented in all browsers.

Another solution uses autocomplete="false" . Here are some links to other questions that may help:
SO - Disabling Chrome Autofill
SO - Chrome browser ignoring autocomplete = off

+19
source

I tried to confuse the browser so that it didn’t know which input field to fill in, and it looks like a cross-platform - cannot check it on explorer thouth ...

Try this or something like that:

 <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 the other from the fields on the form (in this case I have a “BigText login” for the password and email address), and then make it invisible in the way I described above. If you try to use "display = none", this will not work.

I also tried some variations of the values ​​= ", value =" "etc., to stop the browser, replacing the line with what it wants to overlay on the page, but that didn’t work ... Saves your time trying if you were hoping to a cleaner opton

+1
source

All Articles