Chapter 10. USING FRAMES AND IMAGE MAPS

Frames divide a web page into different sections and are useful for navigation and page layout. Image maps are images that contain multiple HTML links. Clicking different parts of an image map brings your visitors to different web pages. JavaScript can enhance both of these HTML features by allowing you to manipulate the contents of frames using image maps and links in other frames.

In this chapter you'll learn how to:

  • Create basic frames

  • Use JavaScript to control the contents of frames

  • Use JavaScript to change two frames at once

  • Use frames to share information between web pages

  • Create basic image maps

  • Use JavaScript to add functionality to your image maps

A Real-World Example of Frames and Image Maps

A page that ...

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.