G
Guest
I am trying to capture when the user clicks the X button on the ie window. I
have used the onunload for the window event, but there is a problem. I put
javascript code for this event and when the form performs a postback on the
page, the onunload event gets triggered eventhough I am still on the same
page and the user did not click the 'X' button. In other words, the onunload
event is triggered when you are performing a postback to the page. Is there
anyway around this? I want to capture when the user clicks the 'X' and not
when the page is performing a postback...
thanks in advance...
have used the onunload for the window event, but there is a problem. I put
javascript code for this event and when the form performs a postback on the
page, the onunload event gets triggered eventhough I am still on the same
page and the user did not click the 'X' button. In other words, the onunload
event is triggered when you are performing a postback to the page. Is there
anyway around this? I want to capture when the user clicks the 'X' and not
when the page is performing a postback...
thanks in advance...