title: How to refresh the page only one time after 5 sec in JavaScript?
body: <p>Does anyone know how to refresh the page only one time after 5 sec in JavaScript?</p>
  
  <p>I have the following script to refresh the page after 5 sec:</p>
  
  <pre><code>setTimeout(function () {
      window.location.reload(1);
  }, 5000);  // After 5 secs
  </code></pre>
  
  <p>But somehow this is refresh every 5 sec instead of just once time after the 1st 5 sec. Does anyone know how to fix this issue?</p>