Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading page within a specified frameset

Status
Not open for further replies.

jaslr

Programmer
Aug 16, 2001
67
AU
I have more than 1 frameset and I am using plain old school html to make my site.

I have a lot of links back to the homepage, which has a different frameset to the other pages. It's too long a task to go through every page and change the links so the home page frameset is loaded when you press a link to go to the homepage. An easier task would be to just write some code in the main frame of the home page to load the desired frameset.

How do I make my main frame load the desired frameset when it's loaded?

If it helps, I have 3 frames in each frameset. (Side, top and main).

I hope I have written clearly stated my problem.
Regards
 
hi

in the main frameset include some sort of this:

<script>
<!--
onload=function(){
var framename=&quot;needed&quot;//needed frame
var thefile=&quot;theframeset.html&quot;//needed file (with another frameset)
self.frames[framename].location.href=thefile

}
//-->
</script>

or something like this.. Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top