B
buran
Dear ASP.NET Programmers,
I am developing an intranet application using ASP.NET. I want to add such a
functionality that the application displays a pop-up box to confirm when the
user tries to close the windows using X box. I want the pop-up to be
displayed when the user clicks on the X box of the browser window (namely,
when the user closes the browser window). It's not important whether the
data is changed or not.
onbeforeunload event hook works also when I am changing the page. I only
want to display when the user closes the application window, not when he/she
browses to another page in the application. How can I accomplish this?
Thanks in advance,
Burak
I am developing an intranet application using ASP.NET. I want to add such a
functionality that the application displays a pop-up box to confirm when the
user tries to close the windows using X box. I want the pop-up to be
displayed when the user clicks on the X box of the browser window (namely,
when the user closes the browser window). It's not important whether the
data is changed or not.
onbeforeunload event hook works also when I am changing the page. I only
want to display when the user closes the application window, not when he/she
browses to another page in the application. How can I accomplish this?
Thanks in advance,
Burak