Web features explorer

document.caretPositionFromPoint()

Limited availability
Tags: api

The document.caretPositionFromPoint() method finds an insertion point, represented by a DOM node and an offset within that node, for given coordinates in the viewport. To learn more, see Document: caretPositionFromPoint() method at MDN.

Compatibility

Baseline availability blocked since August 2024 by Safari (3 months)