HomeASP.NETHow to Refresh Webpage every few Mins using JavaScript ?

How to Refresh Webpage every few Mins using JavaScript ?

In one of my previous blog post , i explained how to refresh Webpage every few minutes using HTML meta tag . In this blog post , i will explain how one can refresh the webpage using JavaScript.

Assuming that the webpage needs to be refreshed every 60 seconds , below is a sample code snippet that demonstrates how to refresh the page with the window.location.reload() JavaScript function.

How to Refresh Webpage every few Mins using JavaScript ?

<html>

  <head>

  </head>

  <body onload="setInterval('window.location.reload()', 60);">

  </body>

</html>

Leave a Reply

You May Also Like

You can read connection string from web.config file in ASP.NET by using the ConfigurationManager class in case you want to...
When you deploy your ASP.NET Web Application on Windows Server running IIS , there are times that you might receive...
This post will explain how to resolve the error “Handler “aspNetCore” has a bad module “AspNetCoreModuleV2” in its module list”...