Gets or sets the end position or offset of a text selection.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Integer
The end position of the text selection.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.2
Remarks
If you do not select text, selectionEnd returns the offset of the character that immediately follows the text cursor or caret.
See also
Build date: 11/28/2012
