Chapter 6. Frames, Frames, and More Frames

Frames are one of the most powerful features of HTML. In this chapter, we'll demonstrate how to harness the power of JavaScript to make frames even more powerful.

A frame consists of at least three pages of HTML. The first, called the frameset, sets up the dimensions of each of the child frames. The frameset is referred to in JavaScript as top or parent. The remainder of the pages fit into the panes that the frameset has created, and are the child pages. These can be named anything you choose. Figure 6.1 shows a frameset that creates two child frames, “left” and “content.”

Layout of a frameset that contains two frames, “left” and “content.”

Figure 6.1. Layout of a frameset ...

Get Javascript for the World Wide Web: Visual Quickstart Guide, Fifth 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.