HTMLTextAreaElement: selectionStart property - Web APIs | MDN

Value

A non-negative number.

Examples

js

const textarea = document.getElementById("text-box");
const start = textarea.selectionStart;

Specifications

Specification
HTML
# dom-textarea/input-selectionstart

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.