This topic has not yet been rated - Rate this topic

IHTMLDocument2::forms Property

Gets an interface pointer to a zero-based collection of all the form objects in an HTML document.

Syntax


HRESULT IHTMLDocument2::get_forms(IHTMLElementCollection **p);

Parameters

p
A pointer to the IHTMLElementCollection of the collection that contains all the form objects in an HTML document.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The form objects are in the same order as they appear in the document. If duplicate names are found, a collection of those named items is returned. Collections of duplicate names must be referenced subsequently by ordinal position.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.