TextEvent
Summary
Represents a text event that usually occurs when text is actually inserted into the document.
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
Microsoft Developer Network: [TextEvent Object Article]