Selection: focusOffset property
The Selection.focusOffset
read-only property returns the
number of characters that the selection's focus is offset within the
Selection.focusNode
.
This number is zero-based. If the selection ends with the first character in the
Selection.focusNode
, 0
is returned.
Value
A number.
Specifications
Specification |
---|
Selection API # dom-selection-focusoffset |
Browser compatibility
BCD tables only load in the browser
See also
Selection
, the interface it belongs to.