 <p>I think the loop is just fine, but if you want to keep track,</p> <pre><code>var winList = new Array(); var count = 10; for(var i=0; i &lt; count; i++){ winList[i] = window.open("http://www.test.com"); } </code></pre> <p>This way, you can keep references to your windows.</p> <p>hth</p>