JavaScript事件对象
1.事件对象:记录发生事件的时候的信息的对象
2.获取事件对象
ie:window.event
ff:e
对象.事件=function(e){}
window.onload=function(e){
varee=e||window.event;
}
3事件对象的属性
1.关于鼠标的事件对象
a)clientxclienty发生事件的时候鼠标位于的位置
window.onload=function(e){
varee=e||window.event;
document.mouseevent=function(e){
varee=e||window.event;
varcx=ee.clientx;
div1.innerhtml==""
}
}
i.
b)