Home > Articles > Open Source > Ajax & JavaScript

  • Print
  • + Share This
This chapter is from the book

Exercises

If you want to study the window object and its properties and methods further, perform these exercises:

  • Return to the date/time script you created in Hour 2, "Creating a Simple Script." This script only displays the date and time once when the page is loaded. Using timeouts, you can modify the script to reload automatically every second or two and display a "live" clock. (Use the location.reload method, described in Hour 9.)

  • Modify the examples in Listings 11.5 and 11.6 to use three frames instead of two. For each link in the left frame, use the script to load new documents into both the middle and right frames.

  • + Share This
  • 🔖 Save To Your Account