all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

autocomplete attribute | autocomplete property

Specifies whether autocomplete is applied to an editable text field.

This property is read/write.

Internet Explorer 10

Syntax

HTML
<element autocomplete="sAutocompleteState" ... >
JavaScript
object.autocomplete = sAutocompleteState
sAutocompleteState = object.autocomplete

Property values

Type: DOMString

A string containing whether autocomplete is on or off.

ValueCondition
on

Turns autocomplete on.

off

Turns autocomplete off.

 

Remarks

If the autocomplete attribute is missing, the field will default to an "on" state if element has no parent form, or if the form has autocomplete set to "on".

Examples

The following example uses the autocomplete attribute to disable autocomplete on a text field.


<input type="text" autocomplete="off">

See also

HTMLInputElement
HTMLFormElement

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.