July 1998
Intermediate to advanced
1456 pages
65h 5m
English
target — NN 4 IE n/a DOM n/a
Read-only
Reference to the element object that is the intended destination of 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.
switch (evtObj.target.name) {
case "myButton":
...
...
}Object reference.
None.
Read now
Unlock full access