javascript event target
| target | NN 4 IE n/a DOM 2 |
|
|
Read-only |
|
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. |
|
| Example | |
var elem = (evt.target) ? evt.target : evt.srcElement; |
|
| Value | |
|
Node object reference. |
|
| Default | |
|
None. |
|
Previous: javascript event timeStamp
Next: javascript event srcUrn
789,Nickname,Homepage or email,Comments here,Add comment
