Share this page 

Make a switch to another page after a delayTag(s): Varia


Actually there is no Javascript for this trick, only HTML!
<META HTTP-EQUIV="refresh" 
      CONTENT="5;URL=http://www.somewhere.com/aPage.html">
"content" is the delay in seconds. Here we will wait 5 seconds before jumping to the specified URL.

To auto-refresh (reload) a page after the delay, the HTML solution is still good. A JAVASCRIPT alternative would be :

<SCRIPT>

function aReload() {
  location.reload(true);
  }

function startReload() {
  setTimeout("aReload()", 5000);
  }

</SCRIPT>

<BODY onLoad="startReload();">