BUG: Successive window.open() Calls Slows Down More as You Increase the Number of Open Browser Windows (815323)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming)

SYMPTOMS

Each successive call to the window.open method to create a new child window slows down more as you increase the number of browser windows that you open.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior


  1. Paste the following code in Microsoft Notepad:
    <html>
    
    <head>
    <title>JS window.open tester</title>
    </head>
    
    <script language="javascript">
    function jsOpenWindow() {
            var iRand = Math.round(Math.random()*1000000);
            var sURL = "Blank.htm?ID=" + iRand.toString();
            var sHandle = iRand.toString();
    
            var oWin;
            try {
                oWin = window.open(sURL, sHandle, "");
            } catch (e) {
                alert("error");
            }
    }
    </script>
    
    <body>
    <input type="button" value="Open new window with unique ID" onclick="jsOpenWindow()"/>
    </body>
    
    </html>
  2. Name the file Sample.htm.
  3. Open another instance of Notepad, and then paste the following code in it:
    <html>
    <head>
    	<link rel="stylesheet" type="text/css" href="stylesheet/default.css">
    	<title>Random Incident</title>
    </head>
    <body scroll="no">
    	Random Incident
    </body>
    </html>
  4. Name the file Blank.htm, and then put it in the same folder where you saved Sample.htm.
  5. Open Sample.htm in Internet Explorer.
  6. Click the Open new window with unique ID button.
  7. Notice that with each successive call to window.open method when you have a number of the browser (Internet Explorer) windows already open, the call slows down more.

Modification Type:MinorLast Reviewed:9/27/2005
Keywords:kbHotfixServer kbQFE kbBug KB815323 kbAudDeveloper kbAudITPRO