I'm trying to frame a site for a client, but the company he has his site thru has a frame busting code in their pages that they don't know about. <script language="JavaScript"> <!-- if (self.parent.frames.length != 0){ self.parent.location=document.location; } --> </script>I found using the following code in the frame works in IE, security="restricted" but need to find a fix for firefox at least. Any help would be greatly appreciated.
This seems to work if? it's what you need. <script language=â€JavaScript1.1″ type=â€text/JavaScriptâ€>if (parent.frames.length > 0) top.location.replace(document.location);</script> Just put that script in your header and you’re done! Take care
well, thanx for trying. Guess we only have 2 choices left, rebuild the page from the ground up, or somehow teach this company how to remove the code (the delete key is great).
<style type="text/css"> html { visibility:hidden; } </style> <script language="javascript" type="text/javascript"> if ( self == top ) { document.documentElement.style.visibility='visible'; } else { top.location = self.location; } </script> Based on the Stanford Web Security Group paper "Busting Frame Busting: A Study of Clickjacking Vulnerabilities at Popular Sites" with the caveat that this technique may have unintended impact on SEO although we have not been able to confirm yet.