Example
Execute a section of JavaScript when the user relaxes the keystroke:
<input type="text" onkeyup="displayResult()">
Browser support
IE
Firefox
Chrome
Safari
Opera
All major browsers support onkeyup attribute.
Definition and Usage
The onkeyup attribute is triggered when the user releases a key (on the keyboard).
Tip: The order of events relative to the onkeyup event:
onkeydown onkeypress onkeyup
Note: The onkeyup attribute does not apply to the following Elements:
, , ,