Event.KEYUP
JavaScript 1.2+ Nav4+ Syntax
Event.KEYUP
Description
The KEYUP property of the Event object is used by documents, images, links, and text area form elements to indicate when a pressed key is released by the user.
Example
Listing 7.227 shows how to determine when a key has been released. The KEYUP event is captured. When this occurs, the handle() function is invoked, which informs the user that a key that had been pressed down has been released.
Listing 7.227 Accessing the KEYUP Property
<html> <head> <title>Example of Event.KEYUP</title> </head> <body> <script language="JavaScript"> <!--Hide // sets up the window to capture KEYUP events window.captureEvents(Event.KEYUP); // function that handles the specific event. The ... |
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.