| Author |
window.onClose in IE
|
Surya Kant
Ranch Hand
Joined: Mar 29, 2005
Posts: 104
|
|
Hello All, Can any of you tell me how do I manage the window.onClose event in Internet Explorer, What I really need is to control when the user closes the window, but without using events like <BODY onUnload> or <BODY onBeforeUnload Thanks in Advance..
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
There is no onclose event. Eric
|
 |
Surya Kant
Ranch Hand
Joined: Mar 29, 2005
Posts: 104
|
|
Yes Eric!!, I know ..there is no onClose() method.I just wanted to know how that function can be implemented in java script.. Regards, Surya
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
People have tried for years and there is no real way to do it. There are a number of events that fire onunload and onbeforeunload and there are multiple ways of how those events can be triggered. That is what makes it hard. People do things with the onbeforeunload that sets a Boolean on a click of a button.link that allows the page to exit, but issues what that are refresh, back, and forward will be broken. We just have to remember that we are dealing with a web app and not a client app. Eric
|
 |
 |
|
|
subject: window.onClose in IE
|
|
|