O'Reilly logo

The Book of JavaScript, 2nd Edition by thau!

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Frames

If you're already familiar with frames—what they are and how they are used to build web pages—and don't need a review of the basics, you can skip to the section "Frames and JavaScript" on page 172 to learn how the language works with them.

Frame Basics

A web page with frames is actually a set of HTML pages displayed simultaneously. If a page has two frames, it displays two HTML pages, one for each frame. In addition to the HTML pages that provide the content in the frames, another page describes how to display these HTML pages. Figure 10-2 shows the HTML for a simple web page with frames. Figure 10-3 shows what the resulting page looks like in a browser.

Figure 10-2. Code for a simple web page with frames

The code in Figure 10-2 consists of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required