General- Breakout of Frames

Summary:
URL- Any page that is viewed with a Javascript capable browser.
Description- Here is a general script that you can use to keep your page from getting trapped inside of frames. It checks to see if it is inside a frameset, if it is, it breaks out automatically!


Do you hate it when some jerk puts a link to you inside his frames? Do you hate it when some greedy company frames your site to show ads? Stop these irresponsible practices now! Here's how:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript">
<!-- begin hiding
  if (parent.frames.length)
  top.location.href= document.location;
// done hiding -->
</SCRIPT>
</HEAD>
<BODY>
<!-- your homepage goes here -->


Special thanks to Counterexploitation and the Free Webpage Provider for the code listed below:

There are rumors that some free web page services actively search for the Javascript codes that defeat ad-frames. So, if you add in plain-old Javascript code to break your page out of the frame, they might just delete your homepage. So, on behalf of everyone who hates ad-frames - here is the same exact code, but this time it's ENCRYPTED in hexidecimal! The server won't even know it's there, (it appears invisible) and you won't be trapped in a frame anymore...

<HTML>
<HEAD>
<SCRIPT Language="javascript">
<!--
eval(unescape("%69%66%28%74%6f%70%21%3d%73%65%6c%66%29%7b%74%6f%
70%2e%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%3d%73%65%6c%66%2e%6c%
6f%63%61%74%69%6f%6e%2e%68%72%65%66%3b%7d%0a"));
//-->
</SCRIPT>
</HEAD>
<BODY>
<!-- your homepage goes here -->

*Important! - This whole string of code should be on ONE line. Don't break it up or separate it with spaces. The reason it is separated here is because my tables cause it to wrap to the next line. Don't use it on your page like this! To see an example of how it should be: view the Source Code of this page (Go to VIEW on your menubar and select SOURCE).





[ Back to the Main Listing ]





© Copyright 1999 Kendall Dawson.
All rights reserved.