aspose file tools*
The moose likes JSP and the fly likes IE9 browser crashes if we close the window before it finishes loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "IE9 browser crashes if we close the window before it finishes loading" Watch "IE9 browser crashes if we close the window before it finishes loading" New topic
Author

IE9 browser crashes if we close the window before it finishes loading

Ed Abraham
Greenhorn

Joined: Nov 08, 2012
Posts: 1
Hi,

I have a situation here, when I am closing the IE9 browser window before it finishes loading, then the browser is getting closed and reopen. This results in my web application to crash.
After some research in websites I came to know that this behaviour is due to the 'Hang Resistance' feature introduced in IE9. As a work around if I display an info message or the like to the user when he clicks on the window close button, then the crashing can be avoided. In my html file I use the below code to do this.


The 'doneLoading ' is a variable to indicate if the window completed the loading of contents.

In my application I am using this logic in a master page which has the <frameset> tags and <frames> inside it. The 'doneloading' variable is set to true on 'onload' event of frameset.
Now my problem is, the above Java script code is not getting executed always and I am not getting the IE warning message if browser crash always.
Please provide some input on why this message is not shown always.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IE9 browser crashes if we close the window before it finishes loading