Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

How does index.htm link to frameset?

Jul 29, 2007 8:30PM PDT

I am a newbie working on a framed site. I think I understand the concept of the frameset, but I am unsure how index.htm links to frameset.htm. Do I rename frameset.htm to index.htm? Thank you.

Discussion is locked

- Collapse -
Re: working with frames.
Jul 30, 2007 5:11AM PDT

If you want a page with the content you now have in a file called frameset.htm to be opened by default, just name that file index.htm. That's all.

Kees

- Collapse -
Samples
Jul 30, 2007 9:10AM PDT
- Collapse -
confused
Jul 30, 2007 9:27AM PDT

Does the html "frameset" still work as a frameset, even if I rename it index.htm?

- Collapse -
You can
Jul 30, 2007 1:02PM PDT

name the page index.htm(l)... anything you want, and you can have frames in there.

~Sovereign

- Collapse -
You can try
Jul 31, 2007 12:03AM PDT

Try what Sovereign said(rename 'frameset.html' to 'index.html'.

If that doesnt work, try the following.

Just replace the <body> tag with the following
<body onload="javascript:window.location='frameset.html';">

This will work for sure.

- Collapse -
Frames are a BAD idea
Aug 1, 2007 12:09PM PDT

Outdated, Impractical, not user friendly - just forgetaboutem....
For reasons, check herehttp://www.killersites.com/mvnforum/mvnforum/viewthread?thread=4258

Generally, the only good reason to use frames is so one does not have to repeat the same sections on multiple pages - you can get the exact same effect without any of the drawbacks using PHP includes - and those are easier to do than any framesets -here's a free video tutorial http://www.killerphp.com/videos/02_php_includes/02_php_includes.html