When you return any message on "window.onbeforeunload" the message gets displayed on messagebox with OK/Cancel button .
Press OK to continue (closing the page) and cancel to stay on the current page On Wed, Mar 24, 2010 at 3:08 PM, Jamie Fraser <[email protected]>wrote: > That is a fantastic way to ensure that your users NEVER come back. > > > On Wed, Mar 24, 2010 at 9:01 AM, Raghupathi Kamuni > <[email protected]> wrote: > > 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. > > > > 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.
