Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
compositionEndOffset

compositionEndOffset property

Returns the ending offset (character position) of the composition relative to the target if a composition is occurring, or zero if there is no composition in progress.

This property is read-only.

Syntax

JavaScript
result = object.compositionEndOffset

 

Property values

Type: unsigned long

Remarks

For compositions occurring on an input or textarea element, the compositionEndOffset is the ending offset of the composition within the target's value string. For compositions occurring on an element with the contenteditable flag set, compositionEndOffset returns the starting offset relative to the target's textContent property.

See also

MSInputMethodContext

 

 

Show:
© 2015 Microsoft