SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Frame buster?

  1. #1
    I'm a college yuppie now! sbdi's Avatar
    Join Date
    Jul 2000
    Location
    Dublin , Ireland
    Posts
    1,271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does anyone know where i can get a javascript that will break a frame coming from another site

  2. #2
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its really simple but I dont remember off the top of my head.

    Basically it says if document.top != document.self then document.self = document.top

    you can probably find it at a free script resource.

    Chris

  3. #3
    Destiny Manager Plebius's Avatar
    Join Date
    Nov 1999
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    &lt;!-- ONE STEP TO INSTALL Framebreak:

    1. Copy the coding into the HEAD of your HTML document

    &lt;!-- STEP ONE: Paste this code into the HEAD of your HTML document --&gt;

    &lt;script language="JavaScript"&gt;
    &lt;!--
    /* script by www.plebius.org */
    self.onError = null;
    if( top.location != location ) {
    top.location.href = location.href;
    }
    //---&gt;
    &lt;/script&gt;
    [/code]

    Here it is.


    ------------------
    Martin Kretzmann
    Plebius Press - A progressive perspective ... "Insert favorite quote here"
    We have hosted and perl scripts too!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •