Retrieves the element or node that contains the end of a selection.
the end point of a selection.
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1
The Selection.extentNode alias for this property is only available in Microsoft Edge.
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 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.