CaretPosition

この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

« CaretPosition

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

This interface doesn't implement or inherit any method.

Specification

Specification Status Comment
CSS Object Model (CSSOM) View Module Working Draft  

Browser compatibility

Feature Chrome Firefox Internet Explorer Opera Safari
Basic support Not supported 20.0 (20.0) Not supported Not supported Not supported
Feature Android Firefox Mobile IE Phone Opera Mobile Safari Mobile
Basic support Not supported 20.0 (20.0) Not supported Not supported Not supported

See also

Document Tags and Contributors

Contributors to this page: Sheppy, fscholz, teoli
最終更新者: teoli,