Forum Moderators: open
I'm trying to decide which frame breaker to use and where to use it on the index.html page of my sites. I've tried this one right at the bottom of my page code, before the close of the </body> tag
<script language="javascript1.1" type="text/javascript"> <!--
if (parent.frames.length > 0) top.location.replace(document.location); // Escape from frame, but retain one-click "Back". -->
</script>
Also tried this one at the top of the page right after the opening <body> tag:
<script language="JavaScript" type="text/JavaScript">if (parent.frames.length > 0) top.location.replace(document.location);</script>
Lastly this one:
<HEAD>; ... <SCRIPT type="text/javascript">; if(self!= top) top.location.href = self.location.href; </SCRIPT>; ... </HEAD>
Does it matter?
Thanks in advance.
Incidentally, I don't use framebreakers on my site. My site uses frames so standard framebreakers are unsuitable. I've experimented with alternate strategies but have yet to find anything that works reliably on all browsers - perhaps I'll have another look at this.
Kaled.