键盘和鼠标事件测试 <br/><!-- <br/><br/>function keyDown(e) {<br/> s = ""; <br/> for(v in event)<br/> s += v+"="+event[v]+"<br>";<br/> view.innerHTML = s;<br/>return false;<br/>} <br/><br/>document.onkeydown=keyDown <br/>document.onkeyup=keyDown <br/>document.onmousedown=keyDown <br/>document.onmouseup=keyDown <br/>document.onmousemove=keyDown <br/>document.onmouseover=keyDown <br/>document.onmouseout=keyDown <br/>document.onkeypress=keyDown <br/><br/>//--> <br/> 请操作鼠标或键盘 123 7 8 9 4 5 6 1 2 3 0