The CaretPosition interface represents the caret position, an indicator for the text insertion point.
CaretPosition
MDN Reference