Any time the user clicks the mouse or selects a link, and event occurs. Many contemporary languages are primarily driven by these actions. Javascript offers several event handlers. You can indicate a particular builtin or user written function in response. The first example code snippet would generate an alert box if the user clicked a button. The second would be activated when a user chose to move to another page. These examples show only a subset of the full html you would need to place.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- This page created by Stephen Wilson, Professor Conceptual Design, SFSU (http://userwww.sfsu.edu/~swilson) swilson@sfsu.edu
|