Confirm user wants to close browser window

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Confirm user wants to close browser window

    Please don't. It's very simple (window's onclose event) but don't do it.
    Unless your users are total morons who manage to click that tiny X by
    mistake and you think it's important enough to bug everybody else too.

    Jerry

    "Kathy Burke" <kathyburke40@attbi.com> wrote in message
    news:OIt5LQVWDHA.2376@TK2MSFTNGP11.phx.gbl...
    > I thought I saw somewhere I bit of javascript that will ask the user to
    > confirm that he wants to close the application IF he clicks the close
    > browser X...but of course now I can't find it.
    >
    > If the user clicks the X (sometimes by mistake), I just want to have
    > them accept or cancel that action.
    >
    > Thanks.
    >
    > Kathy
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Jerry III Guest

  2. Similar Questions and Discussions

    1. Can not close the browser window from within a pdf in windows XP.
      Here is the problem I am having right now. Thanks for any help!! 1) I have a jsp/html that contains a pdf file. When the html is loaded to the...
    2. Close Browser Window behaviour
      Hi, Not an ideal solution this... but the boss wants a website to open (from the first page) in a browser window without any toolbars, address...
    3. if user closes browser window
      hi, I need to save some values in a database when the user closes an unfinished flash using the "X" button of the explorer. I'm making tests for...
    4. how to close browser window from flash?
      i have encountered what appears to be a bug with loadvars.send: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid...
    5. close my project that is in a browser window (close this window)
      How can I do this with a button? What do I have to put into button?
  3. #2

    Default Re: Confirm user wants to close browser window

    Hi,

    I agree but its the Window onbeforeunload event.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default Re: Confirm user wants to close browser window

    Thanks. It's for a very controlled intranet app, so it will not bug
    users.

    thanks.

    Kathy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Kathy Burke Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139