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

Nov 06, 2017 am 09:37 AM
html button freed

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