Target Parent Window
- If the line:
<BASE TARGET="2nd_wind">,
as in this parent1b.html file,
- is included within the
<HEAD>..</HEAD>
tags; it is not necessary to include the
TARGET="2nd_wind"
attribute in the anchor tags of files to be opened in that specified
window.
- This set of examples are like the set: parent1.html, target2.html, ... target4.html
- with the expection that the
<BASE> tag is used
to define the TARGET="2nd_wind"
in parent1b.html rather than in target2b.html's
and target4b.html's anchor tags.
- The code:
-
<A HREF="target2b.html">
Open</A>
target2b.html in the window named in parent1b.html's
BASE tag.
- produces the following effect:
-
Open
target2b.html in the window named in parent1b.html's
BASE tag.
In this fifth example:
- Click on the above link to "target2b.html":
"Open."
- Resize the new browser window displaying, target2b.html
below parent1b.html.
- Fit First Child Window (target2b.html) to the lower left corner of your screen.
No change has been made to create the link from parent1b.html
to target3.html, since this file is NOT using the TARGET
designated in the BASE tag of parent1b.html.
- The code:
-
<A HREF="target3.html"
TARGET="3rd_wind">Open</A>
a new window called 3rd_wind.
- produces the following effect:
-
Open
a new window called 3rd_wind.
To continue with our illustration:
- Click on the above link to target3.html:
"Open."
- Resize the new browser window displaying, target3.html
below parent1.html
.
- Now fit Target Second Window to the lower right corner of your
screen next to target2.html.
- We can now view 3 separate pages, though related, pages on our
screen concurrently.
Our last link from parent1b.html will be to target4b.html,
with the TARGET="2nd_wind" designated in parent1b.html
the same way we relied on it to work with target2.html.
- The code:
-
<A HREF="target4b.html"
>Replace</A>
the content in the <B>First Child Window</B>!
- produces the following effect:
-
Replace
the content in the First Child Window!
Finally to complete this lesson:
- Click on the above link to target4b.html:
"Replace."
- This will cause the text and background color of target4b.html
to replace target2b.html's content.
- Return to the beginning of this lesson, or
- return
to the Table of Contents.
Last Updated: Dec. 13, 1998