www.webdeveloper.com
Results 1 to 3 of 3

Thread: frame buster?

  1. #1
    Join Date
    Jan 2014
    Posts
    1

    frame buster?

    Hi I am new here. I know some HTML but no Java. I want to learn though as most everything is Java these days. Anyway, my problem is this... I have a site that I made years ago which consists of frames for easy navigating around one of my favorite sites (which is not my own site.) My frame has many links on it and lately I have tried the links pointing to that specific domain and they all break out of my frame. I viewed their source code and was able to find the following....

    <script>
    (function(window) {
    if (window.location !== window.top.location) {
    window.top.location = window.location;
    }
    })(this);
    </script>

    Is there a way to get around this? I do not want to clickjack or anything stupid like that, I just want to be able to get around the site easily. If not I suppose I would have to target all the links to open in a new window which I don't really want to do. Any help would be appreciated! Thanks!!

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    Java nagila,
    Java nagila,
    Java nagila,
    Ve' nismecha...
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

  3. #3
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,148
    Java is not JavaScript, they are two different languages altogether.

    That is JavaScript and this is the right place to be, as for frames, frames are not supported in HTML5 which is what most browsers now support.

    You should not be trying to keep a site in your frameset if it does not want to be in another frameset.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles