Wednesday, February 01, 2006

Self-Refresh Page

http://lab.artlung.com/self_refresh/


Code to make a page that refresh to itself




<script language="JavaScript" type="text/javascript">
<!--
var howManyMinutes = 2; // set your interval here;
var oneMinute = 60000; // 1 minute = 60,000 milliseconds;
refreshFreq = oneMinute * howManyMinutes;
WhereNext = location.href;
setTimeout("window.open(WhereNext,'_top');",refreshFreq);

//-->
</script>