Forcing Pages to open within frames

liunx

Guest
Hi<br />
<br />
This is my first visit to this forum, and I'm very impressed by all the knowledge out there!<br />
<br />
My question is:<br />
<br />
How do I force pages to open within my frameset only?<br />
<br />
For example, I do not want people to be able to go directly to <!-- m --><a class="postlink" href="http://www.domain.com/page1.htm">http://www.domain.com/page1.htm</a><!-- m --><br />
<br />
If they were to type in this address, I would want the page to be forcibly opened within the frameset, i.e. for them to go directly to <!-- m --><a class="postlink" href="http://www.domain.com/index.htm">http://www.domain.com/index.htm</a><!-- m --><br />
<br />
I know it can be done as I've done it before, but can't remember how!<br />
<br />
Thanks in advance<br />
Dean<!--content-->this inside the page you want opened in a frame:<br />
<br />
<script language="javascript">function FullScreen_go(){<br />
if (top.location == location) {<br />
top.location.href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"http://your frameset here";<br />
}<br />
}<br />
</script><!--content-->
 
Back
Top