selectionEnd property

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

Gets or sets the end position or offset of a text selection.

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

Syntax

JavaScript

p = object.selectionEnd

Property values

Type: Integer

The end position of the text selection.

Standards information

Remarks

If you do not select text, selectionEnd returns the offset of the character that immediately follows the text cursor or caret.

See also

input type=text
textArea
HTMLInputElement

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.