编辑下面的代码:【加编码】
<html> <head> <script> function getEventType(event) { alert(event.type); } </script> </head> <body onmousedown="getEventType(event)"> <p>Click in the document. An alert box will tell what type of event that was triggered.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂