AUTOCOMPLETE Attribute | autocomplete Property

DHTML, HTML, & CSS

AUTOCOMPLETE Attribute | autocomplete Property


Sets or retrieves the status of AutoComplete for the object.

Syntax

HTML <ELEMENT AUTOCOMPLETE = sDisabled ...>
Scripting object.autocomplete [ = sDisabled ]

Possible Values

sDisabled String that specifies one of the following values:
off AutoComplete is disabled.
on AutoComplete is enabled. Any string other than off enables AutoComplete.

The attribute has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see dynamic propertiesInternet Link.

Remarks

The AutoComplete feature is highlighted in the autocomplete in html formsInternet Link 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.

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.

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 applicationsInternet Link.

Example

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

<INPUT TYPE="password" AUTOCOMPLETE="off">

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
INPUT type=password, INPUT type=text, FORM

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.