Home > Articles > Open Source > Ajax & JavaScript

This chapter is from the book

Exercises

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

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

  • Modify Listing 10.2 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.)

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.