Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.


result = object.compositionEndOffset


Property values

Type: unsigned long


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




© 2015 Microsoft