all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

focusNode property

Retrieves the element or node that contains the end of a selection.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1

Syntax

JavaScript

p = object.focusNode

Property values

Type: Object

the end point of a selection.

Standards information

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

 

 

Show:
© 2015 Microsoft