javascript event currentTarget

currentTargetNN 6 IE n/a 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.


755,Nickname,Homepage or email,Comments here,Add comment