作者: Laruence( ) 本文地址: http://www.laruence.com/2008/07/18/124.html 转载请注明出处 我们知道在Javascript中,可以使用事件处理函数来监听事件,在事件处理函数中,我们可以通过当前的事件对象(IE: window.event ; firefox parameter event)来获取到事件发生的对象。 比如,在IE中 function eventHandler = function(e){ var ev = e || window.event ; //window.event for IE, para e for ff var el = evt.srcTarget || evt.srcElement; // compatible with IE //then el is the target which cause the [...]