Returns the element or node that contains the start of the selection.
HRESULT IHTMLSelection::get_anchorNode(IHTMLDOMNode **p);
- Address of a pointer to a variable of type IHTMLDOMNode interface that receives the start of a selection.
Returns S_OK if successful, or an error value otherwise.
Returns NULL if not successful. This is not supported by Internet Explorer 8 or earlier versions. AnchorNode returns the value of the IHTMLDOMRange::startContainer attribute of the first Range object in the list. See IHTMLSelection::focusNode to find the node that contains the end of a selection.