selectionStart
all
alt
ch
dir
id
min
rel
top
url
URL
urn
TOC
Collapse the table of content
Expand the table of content

selectionStart property

Gets or sets the starting 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.selectionStart

 

Property values

Type: Integer

The starting position of the text selection.

Standards information

See also

HTMLInputElement
input type=email
input type=number
input type=range
input type=search
input type=tel
input type=text
input type=url
textArea

 

 

Show:
© 2017 Microsoft