This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

TextEvent

Summary

Represents a text event that usually occurs when text is actually inserted into the document.

Inherits from UIEventUIEvent

Properties

inputMethod
Gets a value that describes how text is entered.

Methods

initTextEvent
Initializes a new text event that the createEvent method created.

Events

No events.

Inherited from UIEvent

Properties

detail

Gets additional, developer defined, information about an event.

view

Gets the window object that an event is generated from.

[object window]

Methods

initUIEvent
Initializes a new user interface event that the createEvent method created.

Events

abort
Fires when the user aborts the download.
activate
Fires when the object is set as the active element.

Examples

txtEl=document.getElementById('txtInput'); // textarea
if(window.addEventListener){
txtEl.addEventListener('textinput', handler, false);
}

Related specifications

DOM Level 3 Events (20110531)
Outdated Working Draft

Attributions