A Final Word
At this point you should be familiar with Internet Explorer 4.0x's event model. We discussed event bubbling, and how it relates to the DOM. The mouse and keyboard events in Internet Explorer 4.0x are exceptionally powerful, because they can be fired by any element on the page. For example, a paragraph, a table cell, and a text header can all be the source for any mouse or keyboard event. Event bubbling is useful because it enables you to catch events anywhere in the object hierarchy. But unlike Navigator 4.0x's "trickle-down" mechanism, the first element on the page that has an opportunity to capture an event is the source of that event.
In our next column we'll discuss the cross-browser event model. In other words, we'll show you how to design interactive applications that work with both browsers, despite of the drastic differences between their event models. We'll also cover the events in Navigator 4.0x and Internet Explorer 4.0x, including the differences between the browsers. In this column you learned:
- How to assign an event handler to an element.
- How to implement Internet Explorer 4.0x's explicit event handler scripts.
- How to capture events at various levels.
- How to disable an event handler.
- How to design event processing functions.
- How to take advantage of event bubbling.
- How to cancel event bubbling for a specific event.
- How to access the
eventobject for a specific event.
- How to use the
- How to use Internet Explorer 4.0x's new and revised events.
- How to use the new mouse events.
- How to use the new keyboard events.
Created: December 30, 1997
Revised: December 30, 1997