1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

i Frame breaker

Discussion in 'Cloaking and Content Generators' started by hangovernd, Feb 18, 2010.

  1. hangovernd

    hangovernd Junior Member

    Joined:
    Feb 9, 2010
    Messages:
    129
    Likes Received:
    5
    i cant seem to find one to break out a iframe ...

    http://how.appspot.com/frame


    that a simple frame to test the script and i havent been able to break out
     
  2. viracide

    viracide Registered Member

    Joined:
    Oct 12, 2008
    Messages:
    66
    Likes Received:
    14
    Code:
    <script>
    while((el=document.getElementsByTagName('iframe')).length){el[0].parentNode.removeChild(el[0]);}
    </script>
    
    Try that.

    Fixed the code a bit.
     
    • Thanks Thanks x 1
  3. WickednDivine

    WickednDivine Executive VIP Premium Member

    Joined:
    Jul 29, 2008
    Messages:
    468
    Likes Received:
    344
    Put this on the page inside the frame
    Code:
    <script type="text/javascript">
      if (top.location != location) {
        top.location.href = document.location.href ;
      }
    </script>
    
    should work..