function jsConfirmWindowClose()
{

   return "You are about to navigate away from the main Application window.
If you do this then you will have to reconnect to the Application and may
lose any unsaved data.";

}

 window.onbeforeunload = jsConfirmWindowClose;

On Thu, Mar 18, 2010 at 11:27 PM, Carlos Arias <[email protected]
> wrote:

> Hi,
> I try to know when the user close my web app, because the global.asax don´t
> detect when the user click the close button of the browser.
> Someone know how to???
> thanks.
>
> --
> Carlos Andrés Arias Blanco
>
> To unsubscribe from this group, send email to dotnetdevelopment+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

To unsubscribe from this group, send email to 
dotnetdevelopment+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to