FRAME TARGETS

Target Attribute

The TARGET attribute allows a link to specify a frame by name in which to display the URL. In the ANCHOR hyperlink tag, the TARGET attribute follows the URL attribute. The format of the TARGET attribute in the ANCHOR hyperlink tag is as follows:

<A

HREF="url"

TARGET="windowName">

linked text

</A>

The URL will be loaded into the frame, ("windowName"), replacing any initial contents set with the, <FRAME SRC="url" NAME="windowName">, source attribute of the FRAME tag or any previous targeted contents set by other ANCHOR tags.

Example

Given the previous FRAME example layout and initial contents:

<FRAMESET COLS="25%,75%">

<FRAME SRC="left.html" NAME="left" NORESIZE>

<FRAMESET ROWS="10%,*,10%">

<FRAME SRC="right1.html" NAME="right1">
<FRAME SRC="right2.html"NAME="right2" SCROLLING="yes">
<FRAME SRC="right3.html"NAME="right3">

</FRAMESET>

</FRAMESET>

Consider the "left.html" to hold the following table of contents:

<HTML>
<BODY>

<A HREF="sec1.html" TARGET="right2"> [section 1] </A>

<A HREF="sec2.html" TARGET="right2"> [section 2] </A>

<A HREF="sec3.html" TARGET="right2"> [section 3] </A>

</BODY>
</HTML>

This presents the user with an easy way of navigating between the three documents in the same manner as the frame topics to the left provide a table of contents for this discussion.

Other Targets

Other tags can optionally specify a TARGET attribute. The AREA tag for client-side image maps. The FORM tag for the results of form submission. In addition there are pre-defined targets for referencing default FRAMEs.