How do you force frames to be selected

I have created a site with frames. On the left side the menu. On the right side the contents of the selectable pages of the menu. When you enter the site trough the index.html page the frames are set-up properly (<!-- w --><a class="postlink" href="http://www.xcalak.info/index.html">www.xcalak.info/index.html</a><!-- w -->). <br />
<br />
However if someone enters the site directly on one of the other pages of the site there will be no frames. This could happen when a search engine points them to this page<br />
(example <!-- w --><a class="postlink" href="http://www.xcalak.info/uk/welcome-uk.html">www.xcalak.info/uk/welcome-uk.html</a><!-- w -->).<br />
<br />
How can you force the frames always to be there even if you select a page that has no frames itself but that is opened in a frame. I have seen this somewhere but could't figure it out. After entering the page name the page was always loaded with the frames.<br />
<br />
Hanno<!--content-->How about something like:if (self.location==top.location) {<br />
// The page is not in the frameset index.htm !!! <br />
document.write('<p><a href=http://www.htmlforums.com/archive/index.php/"/index.htm">Home page</a>')<br />
}<!--content-->I have added the following: <br />
<br />
<script><br />
if (self.location==top.location) {<br />
// The page is not in the frameset index.htm !!! <br />
document.write('<a href=http://www.htmlforums.com/archive/index.php/"http://www.xcalak.info/index.html"></a>')<br />
}<br />
</script><br />
<br />
Try:<br />
<!-- w --><a class="postlink" href="http://www.xcalak.info/uk/lodging-uk.htm">www.xcalak.info/uk/lodging-uk.htm</a><!-- w --><br />
<br />
There is no reload of the <!-- w --><a class="postlink" href="http://www.xcalak.info/index.html">www.xcalak.info/index.html</a><!-- w --><br />
It did show the text after the href so it was executed (but removed that text)<br />
<br />
Any idea?<!--content-->Frame enforcer script:<br />
<br />
<!-- m --><a class="postlink" href="http://www.a1javascripts.com/essential_scripts/frameenforcer/frameenforcer.html">http://www.a1javascripts.com/essential_ ... orcer.html</a><!-- m --><!--content-->Mark,<br />
<br />
I've tried and it works!<br />
<br />
What I have seen on another site was a bit more sophisticated because it would not go to the start page (index) but reload the requested page with the menu frame on the left. But it's fine like it is now.<br />
<br />
Thanks,<br />
<br />
Hanno<!--content-->
 
Back
Top