HBCMS更多的中文手册参考:

AutoCompleteSaveForm Method

DHTML文档教程

Saves the specified form in the AutoComplete data store.

dhtml语法

external.AutoCompleteSaveForm(oForm)

Parameters

oForm Required. Objectthat specifies a reference to a form element.

return value

no return value.

remarks

use this method, included in microsoft® internet explorer 5 and later, to store input type=text and input type=password values to autocomplete data storage. once information is entered in a form and saved to autocomplete storage, whenever a user visits a web site and starts typing in a field with the same name as a stored field, the autocomplete attribute provides an autocomplete box containing a list of previously stored data.

to enable the autocomplete feature for forms, choose internet options from the tools menu, click content, and then click autocomplete. to disable the feature for individual form controls and entire forms, use the autocomplete attribute.

this method is not supported in html applications (htas).

DHTML代码范例

This example uses the AutoCompleteSaveForm method to save the value of a text field without submitting the form to a server.

<SCRIPT>
function fnSaveForm(){
window.external.AutoCompleteSaveForm(oForm);
oForm.AutoCompleteTest.value="";
oForm.AutoCompleteIgnore.value="";
}
</SCRIPT>
<FORM NAME="oForm">
This text is saved:
<INPUT TYPE="text" NAME="AutoCompleteTest">
This text is not saved:
<INPUT TYPE="text" NAME="AutoCompleteIgnore" AUTOCOMPLETE="off">
</FORM>
<INPUT TYPE=button VALUE="Save Value" onclick="fnSaveForm()">
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

There is no public standard that applies to this method.

Applies To

external

更多语法参考

Using AutoComplete in HTML Forms