IHTMLDocument2::get_anchorsIHTMLDocument2::get_anchors*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLDocument2::get_forms
*Next Topic: IHTMLDocument2::put_title

IHTMLDocument2::get_anchors


HRESULT get_anchors(
    IHTMLElementCollection **p
);

Retrieves an interface pointer to a zero-based collection of all the A objects in an HTML document. The elements are in the same order as they appear in the document.

p
Address of a pointer to the IHTMLElementCollection interface of the collection containing all the A objects in the HTML document.

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.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.