How to detect if user has close the browser?

  • Thread starter Thread starter Lord2702
  • Start date Start date
L

Lord2702

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,
 
Hello Patrick,
I understand that it requires to use JavaScript, But Can you give some line
of code, How to do it? Thanks.
 
The brwoser provides "onbeforeunload" event and you can use this in the
body tag to detect if the window is being closed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top