document.caretPositionFromPoint()
Newly Available (since 2025-12-12)
Expected to be Widely Available on 2028-06-12
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.
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 20 Released on 2013-04-02
- Firefox for Android 20 Released on 2013-04-02
- Safari 26.2 Released on 2025-12-12
- Safari on iOS 26.2 Released on 2025-12-12
MDN documentation
Specifications
Usage (according to Chrome Platform Status)
~5.240% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist