How to load multiple frames from another frame?
Create a
?frameset with one horizontal and two vertical
?frames. The script later will identify the frame by its name attribute.
<html>
<head>
<title>Frameset</title>
</head>
<frameset rows="10%,*">
<frame name=_h src="header.htm">
<frameset cols="20%,*">
<frame name=_l src="toc.htm">
<frame name=_r src="main.htm">
</frameset>
</frameset>
</html>
Create all the pages you need then place this function between script tags in each page that has a side list in another frame. The location object is used to assign a URL to the location property of an object.
Note that frames on the same level of hierarchy can only be accessed through their parent window.
Target the pages into their frames in the header.
<html>
<head>
<title>Header</title>
</head>
<body>
<a href="main.htm" target="_r">Home</a> |
<a href="01.htm" target="_r">Content 1</a> |
<a href="02.htm" target="_r">Content 2</a>
</body>
</html>
Related threads:
Hyperlinks and frames
Java Script FAQ