Retrieves the element or node that contains the end of a selection.
HRESULT value = object.get_focusNode(IHTMLDOMNode** p);
the end point of a selection.
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1
Returns NULL if the selection does not exist. As a selection object consists of a list of Range objects, focusNode returns the value of the IHTMLDOMRange::endContainer attribute of the last Range object in the list.
The following example shows the text content that is contained within the node (or tags) that is in focus when you click a section of text.