Retrieves an interface pointer to a zero-based collection of all the FRAME elements in an HTML document, if the document contains the FRAMESET element.
Syntax
HRESULT get_frames( IHTMLFramesCollection2 **p );
Parameters
- p
- Address of a pointer to an IHTMLFramesCollection2 interface that receives the collection of elements.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
If the document contains the BODY element, this is a collection of all IFRAME elements in the document. The elements are in the same order as they appear in the document, regardless of whether the document contains the BODY element or the FRAMESET element.
The collection is indexed first by name, then by ID. If duplicate names are found, a collection of those named items is returned. The resulting collection can be only referenced by ordinal position.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0