Textarea.onKeyUp

JavaScript1.2+, JScript3.0+ Nav4+, IE4+ Syntax

onKeyUp="command"

Description

The onKeyUp event handler of an instance of a Textarea object is fired when a key is released within the text area. Care should be taken when using this event handler, because it is possible to get into an infinite loop when using other events or methods that are fired when the focus is placed on or away from the text area or other key-related events are used. The onKeyUp event handler is called after an onKeyPress event handler.

Example

Listing 7.518 has a single text area. If the user releases a key while the focus is on the text area, an alert box is displayed as soon as the key is released.

Listing 7.518 The onKeyUp Event Handler Causes ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.