quag2000@hotmai
04-15-2005, 11:08 PM
Hi,
I'm sure this has been asked a million times, but I can't find an example that I can make work.
Note: I am not familiar with variables and javascript so I need it explained as "cut & paste" as possible :)
I am trying to force my orphaned content pages to reload back into their iframe on my index.html page. EG if a search engine indexes a content page and some one clicks it in their results, it will then load and refresh itself into the main EXISTING frame in index.html
I have tried a bunch of more complex scripts than below as well. No success. Not sure what I am doing wrong. It needs to be as browser compatible as possible, IE, Netscape & Safari mainly.
I'd really appreciate your help!
Thanks in advance..
Cheers!
<SCRIPT LANGUAGE="JavaScript">
<!--
if (top == self) self.location.href = 'http://www.staticfarm.com/index.html' target='iframe';
// -->
</SCRIPT>
I'm sure this has been asked a million times, but I can't find an example that I can make work.
Note: I am not familiar with variables and javascript so I need it explained as "cut & paste" as possible :)
I am trying to force my orphaned content pages to reload back into their iframe on my index.html page. EG if a search engine indexes a content page and some one clicks it in their results, it will then load and refresh itself into the main EXISTING frame in index.html
I have tried a bunch of more complex scripts than below as well. No success. Not sure what I am doing wrong. It needs to be as browser compatible as possible, IE, Netscape & Safari mainly.
I'd really appreciate your help!
Thanks in advance..
Cheers!
<SCRIPT LANGUAGE="JavaScript">
<!--
if (top == self) self.location.href = 'http://www.staticfarm.com/index.html' target='iframe';
// -->
</SCRIPT>