closing a window - in depth?
Posted: Thu May 15, 2003 5:30 am
first, it's not for pop-up.
I have a web application, in which I open a window and connect to a device.
there I have a page with tabs that loads the same page with different parameters.
I have a close button, when it's pressed I close the connection.
the problem is if the user pressed the X button at the top right corner.
I have to close the connection ( closing the connection is by sending a string to a the server through socket)
onUnload is not good (I think ) because every time I move with the tabs I load the page again - but the connection
should still be open.
can it be done?
Thanks
Guy
I have a web application, in which I open a window and connect to a device.
there I have a page with tabs that loads the same page with different parameters.
I have a close button, when it's pressed I close the connection.
the problem is if the user pressed the X button at the top right corner.
I have to close the connection ( closing the connection is by sending a string to a the server through socket)
onUnload is not good (I think ) because every time I move with the tabs I load the page again - but the connection
should still be open.
can it be done?
Thanks
Guy