The DOM CompositionEvent represents events that occur due to the user indirectly entering text.
CompositionEvent()CompositionEvent object instance.This interface also inherits properties of its parent, UIEvent, and its ancestor — Event.
CompositionEvent.data Read only
CompositionEvent object.CompositionEvent.locale Read only
This interface also inherits methods of its parent, UIEvent, and its ancestor — Event.
CompositionEvent.initCompositionEvent()
CompositionEvent object.| Specification | Status | Comment |
|---|---|---|
| Document Object Model (DOM) Level 3 Events Specification The definition of 'CompositionEvent' in that specification. | Obsolete |
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | (Yes) | (Yes) | 9.0 (9.0) | (Yes) | No support | ? |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | ? | (Yes) | 9.0 (9.0) | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent