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