Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Tutorials (http://www.go4expert.com/articles/web-design/)
-   -   How to refresh a page with plain HTML (http://www.go4expert.com/articles/refresh-page-plain-html-t270/)

shabbir 13Apr2005 08:27

How to refresh a page with plain HTML
 
Many developers in search engine arena thinks that as meta's are not that important to use in search engines but thats not all the meta's can do. If you would like to refresh a page after certain interval of time you can do that in just a single line using Meta's and you dont need any server side language nor any load on the server for the same.

Just introduce the following line in your Metas and your page will refresh every 60 seconds.

<meta http-equiv="Refresh" content="60;url=http://www.go4expert.com">

This type of code can be useful for displaying user a message and redirect him after displaying the message. This does not need any overhead of server side and so is better than server side processing and delaying of timer to refresh the page.

sterling45 14Aug2006 06:38

Re: How to refresh a page with plain HTML
 
Excellent, just what I was looking for. Thanks :) Do you reccommend that we keep the page refreshed every 60 seconds? If it refreshed less than 60 seconds, does that effect the site negatively in any way?

shabbir 14Aug2006 06:59

Re: How to refresh a page with plain HTML
 
We should not be refreshing the pages all the time but for pages which has some live matter on it should be done. Something like Score card of a match or some share market quotes ...

sterling45 14Aug2006 07:00

Re: How to refresh a page with plain HTML
 
Quote:

Originally Posted by shabbir
We should not be refreshing the pages all the time but for pages which has some live matter on it should be done. Something like Score card of a match or some share market quotes ...

Great, I'll stick to 60 seconds just to stay safe. Refreshing a lot probably takes up a lot of bandwidth too if the visitor is staying at your site for a long period of time?

pietrom 28Feb2007 21:28

Re: How to refresh a page with plain HTML
 
Is it possible to refresh a web page only when a certain (local) file is modified?
In this way I would not have to refresh the hole page periodically even if it is not necessary...


All times are GMT +5.5. The time now is 12:34.