Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
BUG: You cannot close an Internet Explorer window by using the window.setTimeout(window.close,1) method in Windows XP Service Pack 2
Article ID: 884768 - View products that this article applies to.
When you click a hyperlink that is designed to close a Microsoft Internet Explorer window, the Internet Explorer window does not close. This problem occurs in Microsoft Windows XP Service Pack 2.
The hyperlink uses the window.setTimeout(window.close,1) method to close the Internet Explorer window.
To work around this problem, use the window.setTimeout("window.close()", 1) method or the window.close() method to close the Internet Explorer window.
You can use the following code sample to demonstrate the workaround.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Steps to reproduce the problem
Article ID: 884768 - Last Review: October 11, 2004 - Revision: 1.2