home / experts / javascript / column10 |
|
Internet Explorer 4.0x supports the two most basic event handler methods:
Consider the following form definition:
When you click the button, nothing happens because no script or function is attached to its
For more information on this approach, take a look at the event handler page in Column 9. Once you've read it, click the browser's Back button to return. Another way to associate a function with a specific event is to assign its reference to the object's event handler property:
Once again, if you aren't familiar with this technique, I strongly recommend reading the properties page in Column 9. Even though that column deals with the event model in Navigator 4.0x, these event handler approaches are fundamental, and are supported by Internet Explorer 4.0x as well. The entire event model is based on the ability to capture and process events with event handlers. |
Created: December 30, 1997
Revised: December 30, 1997
URL: http://www.webreference.com/js/column10/eventhandlers.html