SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Break out of frames..kinda

    Okee doke...I do PHP, I don't do JavaScript, so I need a small bit of help.

    I have a frameset page. I need something I can call from onLoad (the PHP will put an onload into the body tag if this needs to happen) in an interior frame to change the location of the entire window so that all the frames that are part of being logged in are gone.

    Something.location = something?

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    Vancouver, BC, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a site that I point to using a .tk extension. The problem with this service is it creates a frame set that limits the scrollability of pages within. I had to escape from the frame but it took some creative work.

    Code:
    function breakOut() {
        if (self != top) 
            window.open("http://example.com","_top","location=no,status=no,toolbar=no");
    }
    Then add:
    Code:
    <body onLoad="breakOut()">
    PM me if you want to see a live example.


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
  •