javascript event srcElement
@March 15, 2008, 1:22 a.m.
srcElement | Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a |
Read-only | |
Refers to the element object that initially received the current event. This property is convenient in switch constructions for an event handler function that handles the same event type for a number of different elements. The corresponding property for Netscape 6 is target. |
|
Example | |
switch (evt.srcElement.id) { case "myDIV": ... ... } |
|
Value | |
Element object reference. |
|
Default | |
None. |
Permanent URL:
http://javascript.gakaa.com/event-srcelement.aspx
Powered by Linode.