javascript event currentTarget
@March 15, 2008, 1:22 a.m.
currentTarget | Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2 |
Read-only | |
Returns a reference to the node whose event listener is currently processing the event. Allows a function to know whether it is invoked from the actual target node or a different node during event propagation. |
|
Example | |
if (evt.currentTarget.nodeType == 1) { // process at element level for possible text node target } |
|
Value | |
Reference to a node in event propagation hierarchy. |
|
Default | |
Reference to event target. |
Permanent URL:
http://javascript.gakaa.com/event-currenttarget.aspx
Powered by Linode.