Assignment 009
JavaScript, Form Objects, and Event Handlers
The above button does not respond when clicked. In order to have a button do something, you must set it up to respond to an event. Buttons have several events to respond to, including:
- onClick - The onClick event (when something is clicked)
- onDblClick - The onDblClick event (when something is clicked twice)
- onFocus - The onFocus event (when something receives the tabe our mouse 'attention'
- onLoad - The onLoad event (whent the page loads)
- onUnload - The onUnload event (when the page is unloaded - user leaves the page)