方法1:
html代码<div id="box"></div>
javascript代码 var oBox = document.getElementById("box");
oBox.onclick = function(e){ // e 就是获取的事件对象};
方法2:html代码:<div onclick = "fun(this,event)"></div>
javascript fucntion fun(obj,event){
//obj是对象本省
//event 就是获取的事件对象
}