The Internet Explorer Event Model: Introduction - Doc JavaScript | WebReference

The Internet Explorer Event Model: Introduction - Doc JavaScript

The Internet Explorer Event Model

In our previous column (Column 9) we discussed the new event model and events in Netscape Navigator 4.0x. In the second part of this series, we're going to examine Microsoft Internet Explorer 4.0x's event model. If you missed it, please read Column 9, which explains the basics of events and event handlers. Now that you know the basics, you're ready to explore the new world of events in Internet Explorer 4.0x.

Like Netscape, Microsoft has also added a handful of new events to its fourth-generation browser, providing greater control over actions that occur on a page. In Internet Explorer 4.0x, every element on a page is reflected in JavaScript as an object. Therefore, even the most primitive element generates events. As a scripter, your mission is to capture and process these events. In this column you'll learn:

  1. How to assign an event handler to an element.
  2. How to implement Internet Explorer 4.0x's explicit event handler scripts.
  3. How to capture events at various levels.
  4. How to disable an event handler.
  5. How to design event processing functions.
  6. How to take advantage of event bubbling.
  7. How to cancel event bubbling for a specific event.
  8. How to access the event object for a specific event.
  9. How to use the event object's properties.
  10. How to use Internet Explorer 4.0x's new and revised events.
  11. How to use the new mouse events.
  12. How to use the new keyboard events.

Created: December 30, 1997
Revised: December 30, 1997