title: Javascript refresh + countdown text
body: <p>I am using the following javascript in the header to refresh the page</p>
  
  <pre><code>    &lt;script type="text/JavaScript"&gt;
  &lt;!--
  function timedRefresh(timeoutPeriod) {
      setTimeout("location.reload(true);",timeoutPeriod);
  }
  //   --&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>and in the body tag</p>
  
  <pre><code>&lt;body onload="JavaScript:timedRefresh(5000);"&gt;
  </code></pre>
  
  <p>My question is how do I add a text showing the countdown to refresh the page</p>
  
  <p>x seconds to refresh</p>