spacer
Yehuda Shiran April 15, 2000
Windows Targeting
Tips: April 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

When you create a frame-setting document, the NAME attribute of the tag specifies the name of each frame:

<FRAMESET>
  <FRAME NAME="left" SRC="toolbar.html">
  <FRAME NAME="right" SRC="index.html">
</FRAMESET>

The NAME attribute specifies the name of the frame. In our example, the document specifies two frames ("left" and "right"). Within the toolbar.html document, the toolbar's links would look like this:

<A HREF="about.html" TARGET="right">About Us</A>
<A HREF="feedback.html" TARGET="right">Feedback</A> 

Note that the <FORM> tag also supports a TARGET attribute, which specifies the target window for the form's response. The <BASE> tag specifies a common target for all of the links (and forms) in a document:

<BASE TARGET="right">

The preceding tag defines a single target for all of the elements on the page. The following HTML elements support targets:

<A>
<AREA>
<FORM>

When used, the <BASE> element must appear within the HEAD of the document, before any elements that refer to an external source. If a <BASE> tag is specified, a link can override its default target by explicitly specifying a different target:

<HEAD>
<BASE TARGET="right">
</HEAD>
<BODY>
<A HREF="table.html" TARGET="_self">Table of Contents</A>
<A HREF="about.html">About Us</A>
<A HREF="feedback.html">Feedback</A> 
</BODY>

Learn more about windows creation and usage in Tutorial 1, Working with Windows.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
XML and PHP Simplified · Creating a ASP.NET Contact Form · Data Filtering with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Intel to Host Live Nehalem Q&A · 12 Tips to Troubleshoot Network File-Sharing · 10 Tips for Selling on Kijiji