selectionStart

The selectionStart property of the HTMLTextAreaElement interface specifies the start position of the current text selection in a textarea element.

MDN Reference