• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Detecting an Event

An event handler connects an action in the browser window to a JavaScript function, which in turn causes some reaction in the browser window.

In this example, when the visitor rolls the mouse over (onmouseover) the diamond graphic (Figure 11.5), the original graphic is replaced by a triangle graphic (Figure 11.6).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint