SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: framing

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question framing

    I have two pages (a lot more in fact ) A and B in a frameset named C. I you type the URL of B, it will open in my fameset. The problem I am unable to solve is that another site has been able to "frame" my page B into its own frameset. How do I have to proceed to stop that?

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,449
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Try putting this javascript in your frameset:

    Code:
    if (top.location != self.location)
    {
    	top.location = self.location;
    }

  3. #3
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That will free my page from somebody else frameset but my page will not be nested back in my own frame. Thanks anyway.

  4. #4
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,449
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by mokeur View Post
    That will free my page from somebody else frameset but my page will not be nested back in my own frame. Thanks anyway.
    It should be if you put that code in the frameset and not the pages of the frameset.


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
  •