selectionStart

open external var selectionStart: Int?(source)

The selectionStart property of the HTMLInputElement interface specifies the start position of the current text selection in an element.

MDN Reference