Idocs Guide to HTML

Attribute for <IFRAME ...>
NAME

NAME indicates the name of the frame. This name can be used for targeting links much the same way <FRAME NAME="..."> can be used to target links. For example, this can be useful in the situation where you want to produce multiple "inset boxes":

<TABLE ALIGN=RIGHT BORDER=1 BGCOLOR="#FFFFCC">
<TR>
<TD><H4>Facts About Beavers</H4>

<UL>
<LI><A HREF="BeaverHabitat.html" TARGET="BeaverFacts">Habitats</A>
<LI><A HREF="BeaverEat.html" TARGET="BeaverFacts">Food</A>
<LI><A HREF="BabyBeavers.html" TARGET="BeaverFacts">Baby Beavers</A>
</UL>

<IFRAME 
    SRC="BeaverHabitat.html"
    NAME="BeaverFacts"
    WIDTH=300 HEIGHT=200>
</IFRAME></TD>
</TR></TABLE>

produces:

Facts About Beavers

Notice that in this example we don't include any content inside <IFRAME ...>. In this particular implementation that list of links is sufficient for browsers that don't understand NAME. For browsers such as Netscape, each link will open in a new window. Opening in new windows may be a downside, or it may match nicely with your design.

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.