|
January 13, 2001 Cancelable Events Tips: January 2001
Yehuda Shiran, Ph.D.
|
|
The e object holds a lot of information about the Netscape 6 event. The cancelable property, for example, reveals whether an event can be canceled by any of the event handler up and down the hierarchy. Possible values are true and false. Some events cannot be canceled. The following statement prints the cancelable 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 e object as a parameter to those functions which reference it. In the following example, we pass the e object as a parameter to colorItTan():
Get on Netscape 6 browser and play with this demo. Click the left button and observe that the left button click is cancelable (true value is printed to the status window.)
People who read this tip also read these tips: Look for similar tips by subject: |