<class home>  <html part II>   <back   next>

html continued

Targeting Frames:

The best part about frames is that you can change the content of the frame with a link from another page in the frameset or within the same frame.

From another frame:
<a href="newpage.html" TARGET="name of frame">
From within the same frame:
<a href="newpage.html" TARGET=_self>

other options:
Opening the frame in a new window:
<a href="newpage.html" TARGET=_blank>
Opening the frame in the current browser window but not the same frame:
<a href="newpage.html" TARGET=_top>
Opening the frame in the frame that contains the current frameset:
<a href="newpage.html" TARGET=_parent>


example>>>

FRAMES page:

<!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="links4.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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border="0" width="50" height="100%">
<tr bgcolor="#CCFFFF" align="center">
<td><strong><a href="content0.html" TARGET="right">home</a></strong></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td><strong><a href="content.html" TARGET="right">pony 1</a></strong></td>
</tr>
<tr bgcolor="#CCFFFF" align="center">
<td><strong><a href="content2.html" TARGET="right">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>