10-3 键盘鼠标事件测试.htm
来自「JAVASCRIPT完全自学手册,中源码的验证修订实例」· HTM 代码 · 共 16 行
HTM
16 行
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312" />
<title>10-3 键盘鼠标事件测试</title>
</head>
<body style="overflow:auto;">
<textarea cols="50" rows="10" onmousedown="this.value+='\r\n'+event.type"
onmouseup="this.value+='\r\n'+event.type"
onmouseover="this.value+='\r\n'+event.type"
onmouseout="this.value+='\r\n'+event.type"
onkeydown="this.value+='\r\n'+event.type;"
onkeyup="this.value+='\r\n'+event.type"
onkeypress="this.value+='\r\n'+event.type">
</textarea>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?