HTML: The Definitive Guide

Previous Chapter 10 Next


An Overview of Frames
Frame Tags
Frame Layout
Frame Contents
The <noframes> Tag
Named Frame or Window Targets

Besides extending the capabilities of HTML documents, the innovators at Netscape Communications also recently introduced a device that extends the capability of the browser window itself. The newest versions of Netscape Navigator (2.0 and later) let you divide its main display window into independent window frames, each simultaneously displaying a different document--something like a wall of monitors in a TV control room.

10.1 An Overview of Frames

Figure 10-1 is a simple example of a Netscape frame display. It shows how the document window may be divided into columns and rows of individual frames separated by rules and scroll bars. Although it is not immediately apparent in the example, each frame in the window is displaying an independent document--HTML ones in this case--but the individual documents may be any valid content the browser is capable of displaying, including multimedia. If the frame's contents include a hypertext link the user selects, the new document's contents, even another frame document, may replace that same frame, another frame's content, or the entire browser window.

Figure 10-1: A simple six-panel frame layout for Netscape

[Graphic: Figure 10-1]

You enable Netscape frames with a special frame document. Its contents do not get displayed. Rather, the frame document contains extension HTML tags that tell the browser how to divide its main display window into discrete frames, and what documents go inside the frames.

The individual documents referenced and displayed in the frame document window act independently, to a degree; the frame document controls the entire window. So, for instance, the browser's ``Back'' and ``Forward'' buttons don't work for an individual frame, but links the entire frame document with others you viewed previously.

You can, however, direct one frame's document to load new content into another frame. That's done by attaching a name to a frame and targeting the named frame with a special attribute for the hypertext link <a> tag.

Previous Home Next
Beyond Ordinary Tables Book Index Frame Tags