web api interface
CompositionEvent
The DOM CompositionEvent represents events that occur due to the user indirectly entering text.
Constructor
CompositionEvent()- : Creates a new
CompositionEventobject instance.
- : Creates a new
Instance properties
This interface also inherits properties of its parent, UIEvent, and its ancestor — Event.
dataRead only- : Returns the characters generated by the input method that raised the event; its varies depending on the type of event that generated the
CompositionEventobject.
- : Returns the characters generated by the input method that raised the event; its varies depending on the type of event that generated the
localeRead only Deprecated- : Returns the locale of the current input method (for example, the keyboard layout locale if the composition is associated with an Input method editor).
Instance methods
This interface also inherits methods of its parent, UIEvent, and its ancestor — Event.
initCompositionEvent()Deprecated- : Initializes the attributes of a
CompositionEventobject.
- : Initializes the attributes of a
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.