Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for TextEvent.
Developer library 3
TextEvent
UI Events The **`TextEvent`** interface is a legacy UI event interface for reporting changes to text UI elements. > [!NOTE] > `TextEvent` events have been superseded by events such as `input`, `beforeinput`, `keypress`, `keyup`, and `keydown`. ## Instance properties _This interface also inherits properties from its parent UIEvent, and indirectly from Event._ - TextEvent.data - : Indicates the data associat
TextEvent: initTextEvent() method
UI Events The **`initTextEventEvent()`** method of the TextEvent interface initializes the value of a `TextEvent` after it has been created. This method must be called to set the event before it is dispatched, using EventTarget.dispatchEvent(). > [!NOTE] > In general, you won't create these events yourself; they are created by the browser. ## Syntax ```js-nolint initTextEvent(type) initTextEvent(type, bubbles) i
TextEvent: data property
UI Events The **`data`** read-only property of the TextEvent interface returns the last character added to the input element. ## Value A string representing the event data. For `textInput` events, this is the character that was last entered. ## Specifications ## Browser compatibility