Limited availability
The CaretPosition
interface represents the caret position, an indicator for the text insertion point. You can get a CaretPosition
using the Document.caretPositionFromPoint()
method.
This interface doesn't inherit any properties.
CaretPosition.offsetNode
Read only
Returns a Node
containing the found node at the caret's position.
CaretPosition.offset
Read only
Returns a long
representing the offset of the selection in the caret position node. This will be the character offset in a text node or the selected child node's index in an element node.
CaretPosition.getClientRect
Returns the client rectangle for the caret range.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4