Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

GlobalEventHandlers.onkeyup

Summary

onkeyup属性用来获取或设置当前元素的keyup事件的事件处理函数.

语法

element.onkeyup = event handling code

例子

 <input type="text" onKeyUp="keyWasPressed(event)">
 <script>function keyWasPressed(evt){ alert(evt.keyCode) }</script>

备注

在当前元素上释放键盘按键时会触发keyup事件.

规范

不属于任何公开的规范.

文档标签和贡献者

 此页面的贡献者: teoli, jsx, ziyunfei
 最后编辑者: teoli,