Click here to Skip to main content
15,885,546 members
Articles / Web Development / HTML
Tip/Trick

Automatically refresh page after some interval

Rate me:
Please Sign up or sign in to vote.
3.33/5 (3 votes)
19 Jun 2011CPOL 29K   5   3
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)


Written By
Software Developer (Senior)
India India
I am a Java software developer. I like to make new software which can be helpful to people. You may get in touch with me at https://cooltrickshome.blogspot.in

Comments and Discussions

 
GeneralReason for my vote of 1 . Pin
Anuj Tripathi21-Jun-11 3:56
Anuj Tripathi21-Jun-11 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.