Results 1 to 6 of 6

Thread: Closing a window

  1. #1

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Closing a window

    I'm using

    <a href="linktosomewhere" onClick="window.close">Close this window</a>

    The problem with this is that this shows up a msgbox with Yes/No buttons asking the user if they want to close the window or not.
    Is there anyway to turn this off?? Or another way around it???
    Don't Rate my posts.

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: Closing a window

    Originally posted by Pc_Madness
    I'm using

    <a href="linktosomewhere" onClick="window.close">Close this window</a>

    The problem with this is that this shows up a msgbox with Yes/No buttons asking the user if they want to close the window or not.
    Is there anyway to turn this off?? Or another way around it???
    Sadly there is not. Unless you opened the browser through code or through your window, you cannot close it without alerting the user.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Lively Member
    Join Date
    Feb 2002
    Posts
    69
    In a real browser there is no msgbox asking you yes|no,but in crap like IE there is.This is because you cannont close the main window,only windows that are openend trough window.open.

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Barney Calhoun
    but in crap like IE
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by Barney Calhoun
    In a real browser there is no msgbox asking you yes|no,but in crap like IE there is.
    do you think perhaps there is a good reason IE will ask you if you want to allow a website to close other IE windows?

    That is a good thing, and IE is more of a "real" browser than any other right now so come off your high horse.

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by chrisjk
    do you think perhaps there is a good reason IE will ask you if you want to allow a website to close other IE windows?

    That is a good thing, and IE is more of a "real" browser than any other right now so come off your high horse.
    Exactly.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width