ff下可以激发MouseEvent,而IE下却不行,何故?
...
newNode=document.createElement( "div ");
newNode.onmouseover=getInfo;
...
function getInfo(event) {
window.alert(event);
...
}
在firefox下正常的提示objet MouseEvent,在ie下却提示undefined?
请问谁知道这是什么原因吗? 先谢谢了哦!
------解决方案--------------------function getInfo(event) {
var event = window.event || event;
window.alert(event);
...
}
即可...