title: close window and open a new window
body: <p>what i'm trying to do is when the page loads it will
  automatically close the window then opens a new window</p>
  
  <p>here is the code i'm using</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="prahma" content="no-cache"&gt;
  &lt;title&gt;Auto Close and Open New window&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  
  &lt;script language="javascript"&gt;
  var url = "step5.php"
  window.open(url,"","");
  window.open('', '_self', ''); 
  window.close();
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body onload="closeIt();"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>the window closes but does't open the new one.</p>