65.9K
CodeProject is changing. Read more.
Home

Automatically refresh page after some interval

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.33/5 (3 votes)

Jun 20, 2011

CPOL
viewsIcon

29550

Automatically refresh page after some interval

You can easily make your page refresh itself after every certain specified interval. For this we make use of meta tag. Usage
<meta http-equiv="refresh" content="60">
This meta tag will be included inside <head> tag Here http-equiv="refresh" tells that page need to be reloaded. content=60 tells the time delay after which the page gets reloaded. You may change the time to a time delay which you want. Note Content=60 gives the time in seconds, i.e. 60 seconds in example above. The page will reload every time after every 60 sec or the time you specify. You can even use meta to redirect to other page after certain interval.