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.
Compatibility
- Chrome ❌ Search for bugs Search for Chromestatus entry
- Chrome Android ❌ Search for bugs Search for Chromestatus entry
- Edge ❌ Search for bugs Search for Chromestatus entry
- Firefox 20 Released on 2013-04-02
- Firefox for Android 20 Released on 2013-04-02
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position