GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — CompositionEvent - Web APIs | MDN

CompositionEvent

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

  • See full compatibility
  • Learn more

The DOM CompositionEvent represents events that occur due to the user indirectly entering text.

Constructor

CompositionEvent()

Creates a new CompositionEvent object instance.

Instance properties

This interface also inherits properties of its parent, UIEvent, and its ancestor — Event.

CompositionEvent.data Read only

Returns the characters generated by the input method that raised the event; its varies depending on the type of event that generated the CompositionEvent object.

CompositionEvent.locale Read only

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.

CompositionEvent.initCompositionEvent()

Initializes the attributes of a CompositionEvent object.

Specifications

Specification
UI Events
# interface-compositionevent

Browser compatibility

See also

  • compositionstart
  • compositionend
  • compositionupdate
  • UIEvent
  • Event

Help improve MDN

Learn how to contribute

This page was last modified on Nov 29, 2024 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.