Stuck? Need help? Ask questions on our forums.
*/

Other Views

corner
*/

How to load multiple frames from another frame

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> &nbsp; | &nbsp; 
<a href="01.htm" target="_r">Content 1</a> &nbsp; | &nbsp;
<a href="02.htm" target="_r">Content 2</a>
</body>
</html>


Related threads:
Hyperlinks and frames

Java Script FAQ
corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings