title: How to update the same browser page with new URLs with a specific delay using Javascript?
body: <p>I want to open 10 webpages one after another, in the same browser window and with some specific delay. </p>
  
  <p>e.g. I want </p>
  
  <ol>
  <li>open "www.Anywebsite.com"</li>
  <li>Delay 5 seconds</li>
  <li>In the same page open a new "www.Anywebsite.com" </li>
  </ol>
  
  <p>I am trying to do something like this</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;script&gt;
  var myVar=setInterval(function(){myTimer()},1000);
  var condOpen = 0;
  function myTimer()
  
  {
  if (condOpen == 0)
  {
  window.open("http://www.tut.fi","_self"); 
  condOpen = condOpen + 1;
  }
  else if(condOpen == 1)
  {
  window.open("www.w3schools.com","_self"); 
  }
  }
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The problem is it opens only the first page, and as I read about "setInterval", it must execute the function specified after some delay. Please help me in this, I have no prior experience with JavaScript but this is needed for a particular task I am doing.</p>