Home > Web Front-end > HTML Tutorial > The event attribute onkeyup triggered when the user (on the keyboard) releases a key in html

The event attribute onkeyup triggered when the user (on the keyboard) releases a key in html

黄舟
Release: 2017-11-06 09:37:41
Original
2153 people have browsed it

Example

Execute a section of JavaScript when the user relaxes the keystroke:

<input type="text" onkeyup="displayResult()">
Copy after login


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: , ,
, , ,