By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,154 Members | 949 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,154 IT Pros & Developers. It's quick & easy.

How to detect if user has close the browser?

P: n/a
Fri. Oct. 08, 2004 11:10 PM PT

In ASP.NET application, How to detect that user has close the browser, IE or
Netscape, or may be any other ?

Thanks,
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Use Javascript

"Lord2702" <Lo******@MSN.com> wrote in message
news:#T**************@TK2MSFTNGP09.phx.gbl...
Fri. Oct. 08, 2004 11:10 PM PT

In ASP.NET application, How to detect that user has close the browser, IE or Netscape, or may be any other ?

Thanks,

Nov 18 '05 #2

P: n/a
Hello Patrick,
I understand that it requires to use JavaScript, But Can you give some line
of code, How to do it? Thanks.

"Patrick.O.Ige" <pa********@acn.waw.pl> wrote in message
news:uq*************@TK2MSFTNGP12.phx.gbl...
Use Javascript

"Lord2702" <Lo******@MSN.com> wrote in message
news:#T**************@TK2MSFTNGP09.phx.gbl...
Fri. Oct. 08, 2004 11:10 PM PT

In ASP.NET application, How to detect that user has close the browser,
IE or
Netscape, or may be any other ?

Thanks,


Nov 18 '05 #3

P: n/a
RJN

The brwoser provides "onbeforeunload" event and you can use this in the
body tag to detect if the window is being closed
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.