Idocs Guide to HTML

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):

illustration of FRAME NAME and A TARGET

The large frame in the lower right is named "RECIPES" using NAME:

<TITLE>Great Recipes</TITLE>

     <FRAME SRC="recipetitlebar.html" NAME=TITLE SCROLLING=NO>

     <FRAMESET COLS="20%,*">
          <FRAME SRC="recipesidebar.html" NAME=SIDEBAR>
          <FRAME SRC="recipes.html" NAME=RECIPES>




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.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.