document.caretPositionFromPoint()
Limited availability
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
- Chrome 128 Released on 2024-08-20
- Chrome Android 128 Released on 2024-08-20
- Edge 128 Released on 2024-08-22
- Firefox 23 Released on 2013-08-06
- Firefox for Android 23 Released on 2013-08-06
- Safari ❌ Vendor position : support
- Safari on iOS ❌ Vendor position : support
Baseline availability blocked since August 2024 by Safari (5 months)