Web hosting provider - 731Chapter 29 .Event Objects break default: return

731Chapter 29 .Event Objects break default: return } }

W3C DOM Event Propagation


Stop all propagation at FORM
Prevent bubbling past FORM
Redirecting NN6 events The mechanism for sending an event to an object outside the normal propagation pattern in NN6 is similar to that of IE4+, although with different syntax. In place of the IE4+ fireEvent() method, NN6 uses the W3C DOM dispatchEvent() method. The sole parameter of the method is an event object, such as the current event object. Listing 29-9 is the same as the IE4+ Listing 29-6, but with just a few modifications to run in the NN6 event model. Notice that the dispatchEvent() method passes the current event object as its sole parameter. Listing 29-9: Cancelling and Redirecting Events in NN6+ Event Cancelling & Redirecting