HTML event onkeyup

From Htmlpedia
Jump to: navigation, search

Event Attribute onkeyup

onkeyup is an event attribute, its value can either be Javascript code or a JavaScript functions defined in another script. The code will be executed when the user releases the key. It is usually used in input fields and other elements that permit the user to type in text.


In this example, the user will receive a messagebox saying "You released the key", after releasing any key after typing in the input field.

<input type="text" onkeyup="You released the key" />


onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown