|
| UNDERSTANDING JAVASCRIPT EVENTS
In javascript terms, events occur when some action triggers a script. There are two main types of events that can trigger scripts. These are any action taken by a user or a window event.
A user action occurs when a user takes some form of action by interacting with the elements of a page either by a mouse or keyboard.
A window event occurs when the browser loads or unloads a page or certain actions are taken are a predefined time ie. timer, automatic refresh, etc.
The following are the most common events. Click on each to see a full description and examples:
|
|