• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Frames, Frames, and More Frames

Chapter 4. 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 4.1 shows a frameset that creates two child frames, "left" and "content."

Figure 4.1. Layout of a frameset that contains two frames, "left" and "content."


Table 4.1. Just Enough HTML—Frames
Tag Attribute Meaning
FRAMESET Specifies that the page consists of two or more framed pages; contains the FRAME tags that specify the particular pages.
 BORDERSize of the border displayed between each frame, in pixels.
 COLSThe column dimensions (proportional or fixed), in pixels, of each frame.
 FRAMEBORDERYes/No value specifies whether or not to display borders between frames.
 ROWSThe row dimensions (proportional or fixed), in pixels, of each frame.
FRAME The location and attributes of each framed page.
 NAMEUsed by JavaScript to refer to one of the pages in the frameset.
 SRCThe physical location (i.e., the URL) of the page loaded into the frame.


  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint