Microsoft KB Archive/259747

= BUG: Window Closes When a User Clicks Cancel to Cancel Closing a Window Created with the window.showModalDialog Function =

Article ID: 259747

Article Last Modified on 4/21/2006

-

APPLIES TO


 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.5

-



This article was previously published under Q259747



SYMPTOMS
When you set event.returnValue in the OnBeforeUnload event for a window, the user is prompted by Internet Explorer about whether they want to close the current window. If the user clicks Cancel in the modal dialog box to cancel closing the window, the window closes anyway.

This behavior affects windows that are created with the window.showModalDialog function and the window.showModelessDialog function. Note that the window.open function works correctly.



Internet Explorer 5.01
To resolve this problem, obtain the latest service pack for Internet Explorer 5.01. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

267954 How to Obtain the Latest Internet Explorer 5.01 Service Pack

Workaround
To work around this problem, use the window.open function to create the window.



Internet Explorer 5.01
Microsoft has confirmed that this is a problem in Internet Explorer 5.01. This problem was first corrected in Internet Explorer 5.01 Service Pack 1.

Internet Explorer 5.5
Microsoft has confirmed that this is a problem in Internet Explorer 5.5.

