How do I get back?

liunx

Guest
Hi all<br />
<br />
I am having a little (a lot) trouble in getting back a few directories, let me explain: I am using the following script:<br />
<br />
<script language="JavaScript"><br />
<!-- Begin<br />
if (parent.location.href =http://www.htmlforums.com/archive/index.php/= self.location.href) {<br />
window.location.href = 'http://www.htmlforums.com/archive/index.php/main.htm';<br />
}<br />
// End --><br />
</script><br />
<br />
This script goes in the top of any page which I do not want them to see out of the frames<br />
<br />
Which is to basically to ensure that anyone finding a main framed page of my site gets referred back to the main page which is main.htm.<br />
<br />
This all works fine if the page which they found is in the same root direcory as the main.htm page, ie: questions.htm or help.htm etc etc.<br />
<br />
However, I have additional pages that are in the following folders:<br />
<br />
/products/toys/then_the_file.htm<br />
<br />
I have tried various different slashes and dots etc to try and get them back to the main.htm page but I just cant work it out.<br />
<br />
Any help in resolving this would be fantastic.<br />
<br />
Thank you<br />
<br />
Mark.<!--content-->if you want them back to the front page, just use your url<!--content-->Oh my god! how thick am I, why didn't I just think of that. <br />
<br />
Awesome, thanks very much for taking the time to post a response, that worked great.<br />
<br />
Take care my friend.<br />
<br />
Mark.<!--content-->your very welcome<!--content-->
 
Back
Top