Gets the text affected by the composition event.
Property of dom/CompositionEventdom/CompositionEvent
SyntaxNote: 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.
Examplesfunction 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 specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
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