SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Enthusiast Crockett's Avatar
    Join Date
    Jan 2002
    Location
    Miami FLA
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Close popup frameset

    I've pop'd a frameset and have placed a graphic button w/ the calling the following script:

    function close_window() {
    window.close();
    }

    Doesn't work in the frameset. How do you do a window.close that closes a frameset ?

    thx...

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use

    parent.window.close();

    that will do it

  3. #3
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have the same problem, but it's a little more persistant and so far has proved impossible (for me) to solve.

    I use a free url-forwarding service with my domain name that 'directs' the window to the actual url of the site's files.

    The registrar (also the provider of the url-forwarding/url masking) maintains the domain name in the location bar by placing my site files within a frameset.

    The problem is similar to the one above.

    I use parent.window.close(); but it doesn't work.

    I have tried several variations on the close method, but none have been able to work.

    This only occurs in the online copy (ie the one within the frameset.

    I have also tried a variety of 'break out of frames' scripts, but again, none seem to work.

    Their frameset page doesn't have any scripts in it (and none linked)...

    So how do they 'lock' me in?
    How do they lock me open?

    How can I get this window to close?
    Last edited by Bill Posters; May 4, 2002 at 07:34.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  4. #4
    SitePoint Enthusiast Crockett's Avatar
    Join Date
    Jan 2002
    Location
    Miami FLA
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks Andrew - works great!

    thx

  5. #5
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bill sorry i should of read your post properly before

    use this

    PHP Code:
    <script type="text/javascript">
      
    window.top.close();
    </script> 

  6. #6
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no problem, andrew.

    thx for the help

    unfortunately, it doesn't do the trick either.
    The window still won't close.

    I don't know how they do it, but they do it

    I'm guessing it must be something server-side as there is no scripting at all in their frameset (that my index is shown in)
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


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
  •