我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
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 |
文件標籤與貢獻者
標籤:
此頁面的貢獻者:
cvrebert,
Sebastianz,
teoli,
kosvrouvas,
kscarfone,
Sheppy,
ziyunfei,
fscholz,
Pitoutompoilu,
Rtconner,
Mgjbot,
Jan Dudek,
Dria,
JesseW
最近更新:
cvrebert,