Refresh Page with Javascript

Hi I have used the following JS for page refresh automatically.


function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}

<body onload="JavaScript:timedRefresh(120000);">

// 12000 - 2 minutes
// 100 - 1 second

Comments

Popular posts from this blog

Install Cpanm module error : No such file or directory opening compressed index

How to increase Elasticsearch Shard recovery Speed

Getting started with Python Flask application with MVC structure