title: reload a page with list menu option javascript
body: <p>Hello i'm searching the best way to reload a page withe list menu.</p>
  
  <p>I know how to reload a page with simple code or by the meta but from a list menu it not easy.</p>
  
  <p>Example :  </p>
  
  <p>List :<br>
  none<br>
  5 seconds<br>
  10 seconds
  30 seconds<br>
  1 minutes<br>
  2 minutes<br>
  5 minutes  </p>
  
  <p>When an option is selected the page will be automatically reload from the option selected.</p>
  
  <p>Do someone have an idea how to make a simple code ?</p>
  
  <p>@mplungjan my code :</p>
  
  <pre><code>&lt;SCRIPT type="text/javascript"&gt;
  function refresh()
  {
  document.location.reload();
   }
  setTimeout(refresh,theForm.submit();
  &lt;/SCRIPT&gt; 
  
  
  
  
  &lt;FORM NAME="reloadForm" &gt;
  &lt;SELECT NAME="sec" OnChange="refresh()"&gt;
  &lt;OPTION VALUE="0" SELECTED&gt;None
  &lt;OPTION VALUE="5" &gt;Every 5 secondes
  &lt;OPTION VALUE="10" &gt;Every 10 secondes
  &lt;OPTION VALUE="30" &gt;Every 30 secondes
  &lt;OPTION VALUE="60" &gt;Every  minutes
  &lt;OPTION VALUE="90" &gt;Every  minutes and half
  &lt;OPTION VALUE="120" &gt;Every  2 minutes
  &lt;OPTION VALUE="180" &gt;Every  3 minutes
  &lt;OPTION VALUE="300" &gt;Every  5 minutes
  &lt;/SELECT&gt;
  </code></pre>