HTMLTextAreaElement: selectionStart property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The selectionStart property of the HTMLTextAreaElement interface specifies the start position of the current text selection in a <textarea> element.
For general information about this property, see HTMLInputElement.selectionStart.
Value
A non-negative number representing the zero-based index of the first selected character, or the caret position if no text is selected.
Specifications
| Specification |
|---|
| HTML> # dom-textarea/input-selectionstart> |