Page 1 of 1

Refresh page at fixed intervals

Posted: 12 Feb 2015, 09:55
by PloMar
How can I refresh the page after a specified time?
I have a html table with data from server. These data are changed to every 3 minutes, so I want to refresh the page after 3 minutes.
Thanks

Refresh page at fixed intervals

Posted: 12 Feb 2015, 09:59
by MarPlo
You can use the reload() function added in setTimeout().

Code: Select all

<script>
// refresh page after 3 min. (true to load from server, not from cache)
setTimeout(function(){location.reload(true); }, 3000*60);
</script>