asp.net.ph

Skip Navigation Links

AUTOCOMPLETE Attribute | autocomplete Property

Language References


Specifies whether autocomplete is enabled for the element.

Applies To: FORM   INPUT   SELECT   TEXTAREA

Syntax

HTML <element autocomplete = on | off | token_list ... >
Script object. autocomplete = on | off | token_list

Possible Values


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.

Remarks

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.

Example

The following demonstrates how the autocomplete attribute is disabled for a password input control.

<input type=password autocomplete=off>
Applies To

FORM   INPUT   SELECT   TEXTAREA



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note