Attribute for <FRAME ...>
NAME = "text string"
NAME
is used in conjunction with
<A TARGET="...">
to indicate which frame the link targets. For example, a common use for frames is to have three frames on a web page, such as pictured here (and here's the
real thing):
The large frame in the lower right is named "RECIPES" using NAME
:
<HTML>
<HEAD>
<TITLE>Great Recipes</TITLE>
</HEAD>
<FRAMESET ROWS="15%,*">
<FRAME SRC="recipetitlebar.html" NAME=TITLE SCROLLING=NO>
<FRAMESET COLS="20%,*">
<FRAME SRC="recipesidebar.html" NAME=SIDEBAR>
<FRAME SRC="recipes.html" NAME=RECIPES>
</FRAMESET>
<NOFRAMES>NOFRAMES stuff
</NOFRAMES>
</FRAMESET>
</HTML>
The <A ...>
tag which links to "Greek Salad" uses TARGET
:
<A HREF="recipes.html#Greek Salad" TARGET=RECIPES>Greek Salad</A>
When the user clicks on the "Greek Salad" link, the results are put in the RECIPES frame.