在IE中可以直接使用的event在Firefox下却不能使用,要兼容IE和Firefox必须在触发事件时传入参数,实例代码如下:
document.onclick = function(e) { e = window.event || e; var srcElement = e.srcElement || e.target; alert(srcElement); }
China wholesale shoes,jordan shoes, handbag http://www.buyonstore.com