JavaScript for Beginners: An image gallery

  1. Intercepting Clicks
  2. JavaScript for Beginners
  3. Menu form

One common use of web pages is to display images, with one image per page. Normally the page doesn’t change except for the image. JavaScript can help speed things up, by not reloading anything except for the new image.

From the resources.zip archive, open “gallery.html” in your browser. Verify that it works by following the links to the images. Clicking on each link should open just that image in your browser. If it doesn’t work in standard HTML, it won’t work after you add JavaScript to the mix.

  1. Intercepting Clicks
  2. JavaScript for Beginners
  3. Menu form