HTML Targeting Frames

Each frame is given a name using <FRAME NAME="...">. These names uniquely identify each frame. Using these names, links in other frames can tell the browser which frame the link targets.

For example, this code creates a framed page, naming the frames TITLE, SIDEBAR, and MAIN:

<FRAMESET ROWS="15%,*">
 <FRAME SRC="tfetitle.html" NAME=TITLE SCROLLING=NO MARGINHEIGHT=1>
 <FRAMESET COLS="20%,*">
 <FRAME SRC="tfesidebar.html" NAME=SIDEBAR>
 <FRAME SRC="tfemain.html" NAME=MAIN>
 </FRAMESET>
<NOFRAMES>NOFRAMES stuff
</NOFRAMES>
</FRAMESET>

To target one of these frames, the link should have a TARGET attribute set to the name of the frame where the linked page should appear. So, for example, this code creates a link to tfetacos.html and targets that link to the MAIN frame:

This Code Makes This
<A HREF="tfetacos.html" TARGET=MAIN>my link</A>
the link in this page

Targeting the Whole Window >