Citat:
The on value means the UA is allowed to store the value entered by the user so that if the user returns to the page, the UA can pre-fill the form. The off value means that the UA must not remember that field's value.
A UA may allow the user to disable support for this attribute. Support must be enabled by default, and the ability to disable support should not be trivially accessible, as there are significant security implications for the user if support for this attribute is disabled.
Banks frequently do not want UAs to pre-fill login information:
Kod:
<p>Account: <input type="text" name="ac" autocomplete="off" /></p>
<p>PIN: <input type="text" name="pin" autocomplete="off" /></p>
|
Sedan finns 2 varianter.
Antingen fylls värden i automatiskt i när man kommer till sidan, men då brukar det vara begränsat till just det inloggningsformuläret på den domänen. Altså ingen fara.
Ett annat alternativ är en global version, att alla formulär med t.ex namet "user" över hela webben fylls i automatiskt, men då bruker man behöva skriva första bokstaven eller göra något annat aktivt för att hämta data lagrat i UA. Så ditt alternativ är inte särskilt troligt.