How to get the value of web browser close control in a application.
Get Close Value from Web Browser
Collapse
X
-
Tags: None
-
I'm not entirely sure what you are asking.Originally posted by TrushnaRakeshHow to get the value of web browser close control in a application.
Are you trying to determine when someone closes their web browser while using your web application??
There is no way to monitor this, however there is a JavaScript event: onBeforeUnload that may help you.
In this event you could implement a postback to your server indicating that the user is leaving the page, but there isn't any way to tell if they have closed the browser.
-Frinny
Comment