Results 1 to 6 of 6

Thread: Close window - the whole frameset?

  1. #1
    Join Date
    Dec 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Close window - the whole frameset?

    Hi
    I need a button which does the same as pressing Alt+F4, that is, closing the entiered browser window, even if it consists of several pages running in frames in full screen mode. The button (or link) are to be placed only once in the browser window, that is, only in one frame. When pushed, all frames and the browser window should close.

    Is it possible? Can anybody help? If so, please answer!

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <a href="javascript:window.close();">Close</a>

    Does that code work?

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Dec 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face

    Unfortunately not Your suggestion works well for windows with single page whitin. It doesn't work for pages in a set of frames.. Other suggestions, pleazzze!

  4. #4
    Join Date
    Dec 2004
    Location
    Windsor, UK.
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <a href="javascript:' '" onClick="top.close()">Close</a>

  5. #5
    Join Date
    Dec 2004
    Location
    Windsor, UK.
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Or obviously <a href="javascript:top.close();">Close Frameset</a> would be a lot neater.

  6. #6
    Join Date
    Dec 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    TNX, a lot!!

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
  •