Javascript Reference
Categories: event

javascript event target

@Aug. 15, 2009, 12:11 p.m.
target Firefox/Netscape/NN 4 IE n/a Chrome/Safari/DOM 2



Refers to the node object that is the intended destination of the current event. Unlike the corresponding IE srcElement property, the target property in Netscape 6 can refer to a text node, even if the event handler is defined for the element that surrounds the text node. Your event processing for such a scenario must take the nodeType into account to equalize the reference to the surrounding element for both IE and Navigator. 

var elem = ( ? : evt.srcElement;

Node object reference.



Powered by Linode.