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