title: Open links, one after another
body: <p>I'm making a website where I'm opening a new window every 30 seconds. I got it to open the new windows properly, but I would like it to close the last window opened before opening the new one, so only one window is open at a time. How would I do this? Here's my code so far:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function open_win() {
      window.open("http://www.wol.com");
      setTimeout(window.open('http://www.bol.com'),35000);
      setTimeout(window.open('http://lol.com'),70000);
      setTimeout(window.open('http://col.com'),105000);
  
  }
  &lt;/script&gt;
  </code></pre>