target
--------------------------------------------------------------------------------Returns a reference to the target to which the event was originally dispatched. Syntax
targ = event.target
Parameters
targ is a reference to an EventTarget.Example
d = document.getElementById("d1");
if e.target != d
resetGame(); // not my event!
--------------------------------------------------------------------------------Returns a reference to the target to which the event was originally dispatched. Syntax
targ = event.target
Parameters
targ is a reference to an EventTarget.Example
d = document.getElementById("d1");
if e.target != d
resetGame(); // not my event!
netscape中也不行,看来我只好通过传id到函数了。