Auto refresh / Reload web page

I want the web page to be reloading itself after every few seconds?
How can I make my html page to auto refresh?


To make the page reload or refresh itself, we have to use the following code inside the head tag
<meta http-equiv="refresh" content="5" >

The attribute http-equiv="refresh" calls for refresh of the page.
The attribute content="5" sets the time for refresh.
The time after which the page has to reload is set using the content attribute.
Say if you want the page to refresh after 10 seconds interval, set content value to 10.
We would recommend the time of refresh [reloading interval] be above 5 seconds. This is because you have to consider the page loading time.

Ask Questions

Ask Question