all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

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

 

 

Build date: 11/28/2012

© 2013 Microsoft. All rights reserved.