focusNode property
Retrieves the element or node that contains the end of a selection.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Object
the end point of a selection.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1
Remarks
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.
See also
- HTMLSelection
- Reference
- anchorNode
- focusOffset
- anchorOffset
Build date: 11/28/2012

