How to detect if user has close the browser?

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,
 
L

Lord2702

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

RJN

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

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top