- Add
autocomplete="off"
onto<form>
element; - Add hidden
<input>
withautocomplete="false"
as a first children element of the form.
<form autocomplete="off" method="post" action="">
<input autocomplete="false" name="hidden" type="text" style="display:none;">
...
This formation is going to prevent Chrome and Firefox to offer autofill and autocomplete for all input fields inside the form.
I tested everything that was suggested here, and the only thing that really worked was applying the
autocomplete="off"
to the form wrapping the fields. I won't allow the browser to autocomplete. And if you don't have the<form>
, you must add it like this:Applying only to the fields did not work for me.