An event handler connects an action in the browser window to a JavaScript code, which in turn causes some reaction in the browser window. In this example, when the visitor rolls the mouse over (onmouseover) a button graphic (Figure 12.6), the original graphic is replaced by an activated button graphic (Figures 12.7 and 12.8). Figure 12.7. Before the image is rolled over.
Figure 12.8. After the image is rolled over.
To use an event handler:
Tips
|