Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets an interface pointer to a zero-based collection of all the a objects in an HTML document.
Syntax
HRESULT IHTMLDocument2::get_anchors(IHTMLElementCollection **p);
Parameters
- p
A pointer to the IHTMLElementCollection interface of the collection that contains all of the a objects in the HTML document.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The a objects are in the same order as they appear in the document. The collection returns only anchor objects that have a name or an id attribute value. If duplicate names are found, a collection of those named items is returned. Collections of duplicate names must be referenced subsequently by ordinal position.