Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / HTML

Automatically refresh page after some interval

3.33/5 (3 votes)
20 Jun 2011CPOL 29.6K  
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)