There is a small form that has a name, phone and password for editing. So here. The password is constantly filled by itself. For example, in firefox. And NO way to remove it, the script on the document ready value is empty, it is set, autocomplete does not work. How can I leave the password field blank always when the page loads?
3 answers
Combine the attribute autocomplete="off"
with the formation of different field names. For example, add a prefix or make the name an array with a random index. For example name="password9762567"
or name="password[9762567]"
- Does not help. Even with an empty name the form is filled. I can not understand how this mechanism works - Gleb
- @Gleb, the browser substitutes the saved values. - aleksandr barakin
- @Gleb Is it filled with a constantly changing field name? - tutankhamun
|
There is a hack, at the beginning of the form write something like this:
<form> <input style="display: none"> <input type="password" style="display: none"> ... </form>
|
Most likely, he simply looks at [type="password"]
and remembers this way, despite the name, it is quite logical, if autocomplete="off"
does not help, there is one more trick:
First make <input>
read-only, and after clicking on it, remove this attribute:
<input type="password" name="password" readonly onfocus="this.removeAttribute('readonly')">
|
Запомнить логины для сайтов
, then how will auto-fill behave inabout:preferences#security
? - Visman