Our volunteers haven't translated this article into عربي yet. Join us and help get the job done!
The onkeyup property returns the onKeyUp event handler code for the current element.
Syntax
element.onkeyup = event handling code
Example
<input type="text" onKeyUp="keyWasPressed(event)"> <script>function keyWasPressed(evt){ console.log(evt.keyCode) }</script>
Notes
The keyup event is raised when the user releases a key that's been pressed.
Specifications
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'onkeyup' in that specification. |
Living Standard |
Document Tags and Contributors
Tags:
Contributors to this page:
cvrebert,
Sebastianz,
teoli,
kosvrouvas,
kscarfone,
Sheppy,
ziyunfei,
fscholz,
Pitoutompoilu,
Rtconner,
Mgjbot,
Jan Dudek,
Dria,
JesseW
Last updated by:
cvrebert,