This example shows a number of different things.
- How to capture multiple events
- How to process those events using the event handlers
- How to access properties of the event object
]
When you click on the submit button, it triggers the SUBMIT
event which displays an alert box.
If you double click somewhere in the page, it triggers the
DBLCLICK event which displays an alert box showing the
coordinates of where you double clicked.
When a key is pressed down in the browser, the KEYPRESS
event is triggered and an alert box is displayed indicating the type of event.