aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes window.onClose in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "window.onClose in IE" Watch "window.onClose in IE" New topic
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
    
    6
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
    
    6
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: window.onClose in IE
 
Similar Threads
not getting the EL
badPage.jsp - HFSJ pg 458
Is body-content="JSP" useless now ?
how counter variable works in jsp
window.onClose in IE