Article ID: 263312 - Last Review: January 27, 2007 - Revision: 3.2

Canceling the Closing of a Modal Dialog Box Causes Box to Close Anyway

This article was previously published under Q263312
Expand all | Collapse all

SYMPTOMS

Setting event.returnValue inside an onbeforeunload event for a window causes Internet Explorer to prompt you whether you want to close the current window. In a modal dialog box, if you instruct Internet Explorer to keep the window open, the window may close anyway. This issue affects windows that are created with the window.showModalDialog and window.showModelessDialog functions.

RESOLUTION

To resolve this problem, obtain the latest service pack for Internet Explorer version 5.01. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
267954  (http://support.microsoft.com/kb/267954/EN-US/ ) How to Obtain the Latest Internet Explorer 5.01 Service Pack

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Internet Explorer version 5.01 Service Pack 2.

APPLIES TO
  • Microsoft Internet Explorer 5.01
Keywords: 
kbhotfixserver kbqfe kbbug kbfix kbie501presp2fix kbprogramming kbqfe kbui KB263312
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations

 

Related Support Centers