CompositionEvent.CompositionEvent()

Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

The CompositionEvent() constructor creates a new CompositionEvent object instance.

Syntax

 myEvent = new CompositionEvent(typeArg, CompositionEventInit)

Values

typeArg
Is a DOMString representing the name of the event.
CompositionEventInitOptional
A CompositionEventInit dictionary object, which can contain the following members:
  • data: Initializes the data attribute of the CompositionEvent object to the characters generated by the IME composition.

Note: The CompositionEventInit dictionary inherits from the UIEventInit dictionary, so can also accept members defined on there.

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'CompositionEvent()' in that specification.
Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support YesEdge ? Firefox Full support 53IE Full support YesOpera No support NoSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support 53Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

Étiquettes et contributeurs liés au document

Contributeurs à cette page : fscholz, vapier, chrisdavidmills
Dernière mise à jour par : fscholz,