This example shows a number of different things.




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.