title: IE8 won't close window which opened windows with JavaScript
body: <p>I'd like a PHP script to run that locates and opens results in new windows, then closes the original page that runs the script. Here is my script. It works great on IE 9+, but we cannot get it to work on IE 8. It seems as though the window.close is closing the "spawned" windows too?</p>
  
  <pre><code>&lt;?php
  
  $sn = $_GET['sn'];
  
  $files = array();
  
  $filepath = '/data/.../.../.../ABC';
  $urlpath = 'http://AAA.slcusd.org';
  
  $files = glob("$filepath/$sn*.pdf");
  
  echo "&lt;script type='text/javascript'&gt;\n";
  
  foreach ($files as $fullfilename) {
    $filename = substr($fullfilename, 37, 20);
    echo "window.open('$urlpath/$filename','_blank');\n";
  }
  
  echo "window.open('', '_self', ''); window.close();\n";
  
  echo "&lt;/script&gt;\n";
  
  ?&gt;
  </code></pre>