Results 1 to 4 of 4

Thread: Overriding no-frames rule

  1. #1
    Join Date
    Jan 2003

    Question Overriding no-frames rule

    I have a frameset page that lets my user surf within the links I've provided, but then I've encountered at least a couple of my links sites that overrides my frameset.

    Instead of maintaining my frame on the top of the page, the site clicked on occupies the whole page!

    How can I override them?

  2. #2
    Join Date
    Jan 2003
    Dundee, Scotland
    this is a strange one, correct me if i am wrong but doesn't ask jeeves have their web site with a frame at the top but every site that is listed when clicked on doesn't open a new window but is displayed in the bottom frame?
    Last edited by Ribeyed; 02-22-2003 at 08:14 AM.

  3. #3
    Join Date
    Jan 2003
    Originally posted by Dave Clark
    Well, first you have to find a site that impliments JavaScript like this:

    if (self != top) {
    top.location.href = self.location.href;

    If such a site were to be linked to by Ask Jeeves, then that site would break out of Jeeves' frames, too.


    ....you're so right. That I've learned when I re-read the chapters about frames last night.

    The only way I could do this was ask for permission legally from my partner sites.

    Anyway, I have the above code on my home page too now.

  4. #4
    Join Date
    Feb 2003
    you can do it if you query by proxy and pass it back. Then the retval is in the same domain as the requesting script.

    with IE you can then inject into the dom a fake TOP and Parent Object. replacing them with and Encoded name tyo fake out frame detection code.
    Or for
    NS and IE strip the frame detection code.
    3 tier and higher detection code would be pretty hard to fake out generically. But where have you ever seen anyone noided enough to do that except AOL. com hehe.

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