AUTOCOMPLETE Attribute | autocomplete参数属性
| DHTML文档教程 |
Sets or retrieves the status of AutoComplete for the object.
dhtml语法
HTML | <ELEMENT AUTOCOMPLETE
= sDisabled... >
|
---|
Scripting | object.autocomplete(v) [ = sDisabled ] |
---|
DHTML可能的值
sDisabled | String that
specifies or receives one of the following values.off | AutoComplete is disabled. | on | AutoComplete 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.
while values in input type=password elements 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 applications (htas).
DHTML代码范例
This example uses the AUTOCOMPLETE attribute to disable the AutoComplete feature.
<INPUT TYPE="password" AUTOCOMPLETE="off">
是否符合公共标准
This property is a Microsoft extension to
HTMLs .
Applies To