The Navigator Event Model: Introduction - Doc JavaScript
The Navigator Event Model
User actions in JavaScript are called events. The browser constantly monitors document elements that are capable of reacting to user actions. You can write scripts that perform a given task when a specific event occurs, based on where the event occurred, and other relevant attributes. Netscape Navigator 4.0x and Microsoft Internet Explorer 4.0x introduce new events, new elements that support events, and an entirely new event model. The event model connects actions (events) that occur on the page with scripts, so you can design interactive web pages. In this column we'll discuss the event model as implemented in Netscape Navigator (we'll cover Microsoft Internet Explorer's event model in the next column). You'll find out:
- 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
event
object for a specific event. - How to use the
event
object's properties. - 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
URL: https://www.webreference.com/js/column9/