Specifying the Frame in Which a Linked Page Opens

If you code your frame definition pages as shown up to this point in the chapter, a link that appears in any of the pages opens its corresponding file in the same frame that holds the link. In other words, if I click a link that's shown in the upper-left frame, the page opened by that link also appears in the upper-left frame, replacing the file that was there.

If you want a link in one frame to open a new page in another frame, you must do two things:

  • In the <FRAME SRC> lines of the frameset, give each frame a name.

  • In the links within the content files, indicate the name of the frame in which the linked file should open.

Naming the Frames

Using the page created in the preceding example as a starting ...

Get Sams Teach Yourself Internet and Web Basics All in One 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.