autocomplete attribute | autocomplete property

all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

This property is not supported for Windows Store apps built for Windows using JavaScript.

Syntax

HTML<element autocomplete="p" ... >
JavaScript

p = object.autocomplete

Property values

Type: String

off

AutoComplete is disabled.

on

AutoComplete is enabled. Any string other than off enables AutoComplete.

Standards information

There are no standards that apply here.

Remarks

The AutoComplete feature is highlighted in the Using AutoComplete in HTML Forms overview.

When AutoComplete is enabled, suggestions are provided for the value of a text field. Suggested values are mapped values based on the name attribute or vCard schema specified by the vcard_name attribute.

If AutoComplete is disabled, values are not stored and suggested values are not presented.

Values in input type=password elements can be mapped for AutoComplete; however, 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.

Information provided by the AutoComplete feature is not exposed to the object model, and is not visible to a Web page until the user selects one of the suggestions as a value for the text field.

This attribute is not supported in HTML Applications (HTAs).

Examples

This example uses the autocomplete attribute to disable the AutoComplete feature.


<input type="password" autocomplete="off"/>

See also

input type=password
input type=text
form

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.