A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/CompositionEvent/data below:

data ยท WebPlatform Docs

data Summary

Gets the text affected by the composition event.

Property of dom/CompositionEventdom/CompositionEvent

Syntax

Note: This property is read-only.

var compositionData = event.html/elements/data;
Return Value

Returns an object of type StringString

The text affected by the event. See the notes for event specific values.

Examples
function getCompEventText(e) {

var compEventText = e.data;
return compEventText;
}
Notes

The value varies by the event type:

If a user cancels a composition event, the data attribute is set to null on the final compositionupdate event.

Related specifications
W3C HTML5
Working Draft
WHATWG HTML
Living Standard
See also Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4