The Cross-Browser Event Model: Final Thoughts - Doc JavaScript | WebReference

The Cross-Browser Event Model: Final Thoughts - Doc JavaScript


A Final Word

With this column we complete our series about the new event models in Navigator 4.0x and Internet Explorer 4.0x. You should now have a deep knowledge of the event model in each of these browsers, including the new events.

Despite the differences between these implementations, there is a significant overlap. Even though they are opposites in many means, it is not difficult to write scripts that accommodate many features of both models. In this column we showed you exactly how to do this.

If you read the entire series, Column 9, Column 10, and Column 11, you should be familiar with cross-platform development. You probably noticed that it is not possible to use every single feature from each event model. For example, you cannot add an event handler to a paragraph when creating a cross-browser application. In this column you learned:

  1. How to avoid elements that do not support the same event handler in both browsers.
  2. How to capture events at a high level.
  3. How to access the event object from within the event processing function.
  4. How to utilize the event object's properties.
  5. How to detect modifier keys.
  6. How to find out what key or mouse button the user pressed.

http://www.internet.com


Created: January 13, 1998
Revised: January 13, 1998

URL: http://www.webreference.com/js/column11/eventobject.html