cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Refresh

Chiffchaff
Member

Hi,

 

I've set up a site using EasySiteWizard. Is there anyway I can make pages auto refresh rather than asking people to hit their refresh button?. i.e use meta codes in the header

 

Advice welcome

 

Many thanks

 

Aidan

1 REPLY 1

spank
Grand Guru

If your OK to add your own HTML this will work. 

 

3600 is 5 minutes in seconds, you can change this to whatever you want.

 

<meta http-equiv="refresh" content="3600;URL=name-of-this-page.html">

 

Some browsers might not understand the abbreviated form.

 

To refresh at 5 minutes past the hour according to the user's system clock:

 

<script type="text/javascript">
  var timer = setInterval("checkTime()", 1000 * 60);

  function checkTime()
  {
    if(new Date().getMinutes() == 5)
      self.location.reload(true);
  }
</script>

This will not work if the user's browser doesn't support JavaScript; the meta-refresh will.

Message Edited by spank on 07-09-2009 02:13 PM