Compartilhar via


AutoCompleteSaveForm method

Saves the specified form in the AutoComplete data store.

This method is not supported for Windows apps using JavaScript.

Syntax

HRESULT retVal = object.AutoCompleteSaveForm(Form);

Parameters

  • Form [in]
    Type: VARIANT

    A pointer to a VARIANT of type VT_DISPATCH that specifies a reference to a form element.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

Remarks

Use this method to store input type=text and input type=password values to AutoComplete data storage. After 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 included in Microsoft Internet Explorer 5 and later. It is not supported in HTML Applications (HTAs).

See also

Using AutoComplete in HTML Forms