xxxxxxxxxx
小库网
<script type="text/javascript">
function getEventType(event){
alert(event.type);
}
</script>
<body onmousedown="getEventType(event)">
<p>在文档中点击某个位置。消息框会提示你触发的事件类型。</p>