Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil). Junte-se a nós e ajude-nos a fazer o trabalho!
Você também pode ler o artigo em English (US).

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Summary

The CaretPosition interface represents the caret postion, an indicator for the text insertion point. You can get a CaretPosition using the document.caretPositionFromPoint method.

Properties

This interface doesn't inherit any property.

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 character offset in the caret position node.

Methods

CaretPosition.getClientRect

Specification

Specification Status Comment
CSS Object Model (CSSOM) View Module
The definition of 'CaretPosition' in that specification.
Working Draft  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No ?20 No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No ?20 No No ?

See also

Etiquetas do documento e colaboradores

 Colaboradores desta página: Claas, cvrebert, fscholz, teoli, Sheppy
 Última atualização por: Claas,