www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 autocomplete Property
AUTOCOMPLETE Attribute | autocomplete Property

Sets or retrieves the status of AutoComplete for an object.

Syntax

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

Possible Values

sDisabledString that specifies or receives one of the following values.
offAutoComplete is disabled.
onAutoComplete is enabled. Any string other than off enables AutoComplete.

The property is read/write. The property has no default value.

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).

Example

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

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

Standards Information

This property is a Microsoft extension to HTMLs World Wide Web link.

Applies To

INPUT type=password, INPUT type=text, FORM
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG