Language References
Specifies whether autocomplete is enabled for the element.
HTML |
<element autocomplete = on | off | token_list ... > |
Script |
object. autocomplete = on | off | token_list |
off |
autocomplete is disabled. |
on |
autocomplete is enabled. |
token_list |
An ordered set of space-separated tokens consisting of autofill detail tokens. |
The property is read/write with a default value of off.
The autocomplete attribute lets authors specify whether the user agent has to provide automated assistance in filling out form field values.
When autocomplete is disabled, the browser is not permitted to automatically enter values in an input field.
When enabled, suggestions may be provided for the VALUE of a text field. Suggestion values are mapped values based on a space-separated token-list that describes the meaning of the autocompletion value.
While PASSWORD values can be mapped for autocomplete, the ability to store this information can be disabled in the browser, and the user is prompted for a confirmation before the value is stored.
Please see the relevant section on autofill in the HTML standard for detailed information on tis implementation.
The following demonstrates how the autocomplete attribute is disabled for a password input control.
<input type=password autocomplete=off>
FORM INPUT SELECT TEXTAREA