The DOM Event Model Review the W3C DOM2 Event standard recommendation. One of the keys to creating dynamic web pages is the use of event handlers. Most events relate to the browser GUI, such as mouse movements, button or key clicks and updates to form inputs. These are usually tied to a specific page element. Others relate to browser actions such as when a document or image completes loading.
Some objects have default actions defined for certain events, such as clicking on a hypertext link.
The browser's normal action in this case is to load the URL associated with that link. In any case, all events follow the same model. The DOM provides methods for capturing events so you can perform your own actions in response to them. It also provides an Event object which contains information specific to a given event that can be used by your event processing code. Some examples in this article will not work on Opera 5 due to errors or lack of support in its CSS and DOM implementations.