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

Exercises

To gain more experience using event handlers in JavaScript, try the following exercises:

  • Add several additional links to the document in Listing 12.3. Include event handlers that display a unique description for each link.

  • Modify Listing 12.3 to display a default welcome message in the status line whenever a description isn't being displayed. (Hint: you'll need to include a statement to display the welcome message when the page loads. You'll also need to change the clearstatus function to restore the welcome message.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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