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.

Learning resources on MDN

Browser support

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