Changing Default Targets:
•Sometimes you
might get tired of always using links like the one in my last example, that
are all in one frame always pointing to the other, and having to constantly
indicate the name of the frame.
•You can choose a default for all links to open up the pages they
point to in a certain frame. In my case they will all open on the right.
•Use the <BASE TARGET="name">
tag in the HEAD section of your html file of the page that has the links in
it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Pony Pony Pony</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<FRAMESET COLS="50,*">
<FRAME name="left" SRC=links5.html SCROLLING=yes
NORESIZE>
<FRAME name="right" SRC=content0.html SCROLLING=no
NORESIZE>
</FRAMESET>
</html>
links page in Frames page, on left changing page on right:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Pony Pony Pony</title>
<BASE TARGET="right">
</head>
<body>
<table border="0" width="50" height="100%">
<tr bgcolor="#CCFFFF" align="center">
<td><strong><a href="content0.html">home</a></strong></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td><strong><a href="content.html">pony
1</a></strong></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td><strong><a href="content2.html">pony
2</a></strong></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td><strong>pony 3</strong></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td><strong>pony 4</strong></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td><strong>pony 5</strong></td>
</tr>
</table>
</body>
</html>