A Final Word
Netscape Navigator 4.0x's new event model gives you, the scripter, much more control over what happens on your pages. Not only are there many new and revised events, but you can also capture them at various levels in the document. The new event model differs from most other scripting and programming environments, where an event is first sent to its intended target. If it is not captured by that object, the event continues upward through the hierarchy of increasingly more global containers, until the event is captured, or until it passes through the entire hierarchy. Netscape Navigator 4.0x's event model is the exact opposite. The event travels from the top to the bottom. In our next column we'll discuss Microsoft Internet Explorer 4.0x's event model, which is a typical one. You'll find out how to deal with event bubbling, and how to write cross-browser event handling scripts. In this column you learned:
- How to utilize traditional event handlers with the attribute approach.
- How to utilize event handlers with the property assignment approach.
- How to capture and release events at a high level.
- How to process captured events.
- How to design event processing functions.
- How to pass an event to a specific object.
- How to drop an event through the hierarchy.
- How to access the
eventobject for a specific event.
- How to use the
- How to use Navigator 4.0x's new and revised events.
- How to use the new mouse events.
- How to use the new keyboard events.
Created: December 16, 1997
Revised: December 16, 1997