Forum Moderators: open
The idea is to stick the 'orphaned' page into the frameset, and that's what the script in the other thread does.
See, I have the main page, default.aspx, which has also, top.aspx, right.aspx, and left.aspx.
"Top" and "Left" are non-content pages but are crucial to the site functionality, actually they are the site functionality.
However, I have text con "Right.aspx", sometimes people land on "right.aspx" and they wonder what the hell is my site about, since they don't see it as I designed it.
So, the people landing on any of this frames needs to be redirected to see the site in the way it is supposed to work.
All of this is irrelevant if your site only consists of top, left, and right.aspx - which seems unlikely.
Some times, a user may find a page in search engines and land to that page directly, not the one with the frameset.
IMO this one's one of the top ten reasons NOT to use frames on a website. Look at what you're trying to do: you're looking for a Javascript fix for something that is **probably** best done on a more fundamental level: rebuild the pages without frames.
I've been doing this about 10 years (not "bragging," this is just to demonstrate the course of time I've been watching) and have only encountered two situations (so far) where you can't completely dispense with frames.* Anything that motivates you to use frames can be implemented in a single page using server-side includes, Javascript, or any of a dozen other ways.
Understand this is not a flaming of your technique, but the best course (IMO) you can take to address this problem - I know what a pain it is to revise an entire site and route out the frame-monster, but believe me - IT'S WORTH IT! :-D Your pages will be lighter, you'll move closer to standards, and all of your indexed pages will have NAVIGATION.
On that one - I doubt you'll lose anything if you keep the framed pages the same name. That is, if the one that comes up on the search engines is mypage.html, if you leave that name and just put the content that's in other frames in it - this will actually enhance your SEO as the search engine will read it as changed, new, and reindex it.
- signed, ex-frameaholic.
* 1- when you need to display a page that you have no control over, such as an external site, and wish to keep your on-site navigation intact, or 2 - when you want to dynamically write to a frame document with Javascript, for something like a price calculator. Even #2 has better single-page alternatives with modern browsers.