Auto Refresh Page After Given Minutes

Some times we need to reload or refresh our web page for some needs. It’s quite easy and less weight to implement. You can use simply a javascript function to refresh it in a given time frame.

<script>
setTimeout(function(){
   window.location.reload(1);
}, 5000);
</script>

You page will refresh after every 5 seconds. One thing you need to understand here that in this function 1 second will be equal to 1000 value.

Time Calculation

1 Second = 1000
10 second = 10000
10 minutes = 600000
1 hour = 3600000