|
January 17, 2001 Retrieving Element Event Location Tips: January 2001
Yehuda Shiran, Ph.D.
|
|
The e object holds a lot of information about the Netscape 6 event. The currentTarget property, for example, reveals the element that caught the event. The following statement prints the currentTarget property value to the status window:
The status window is shown on the bottom left corner of Netscape 6 window. Notice that you have to pass the
Get on Netscape 6 browser and play with this demo. Click the left button and observe the current target (
People who read this tip also read these tips: Look for similar tips by subject: | |||||||||||||
| ||||||||||||||||||||