How to refresh a page with plain HTML

Discussion in 'Web Design, HTML And CSS' started by shabbir, Apr 13, 2005.

  1. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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.
     
  2. sterling45

    sterling45 New Member

    Joined:
    Aug 13, 2006
    Messages:
    46
    Likes Received:
    1
    Trophy Points:
    0
    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?
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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 ...
     
  4. sterling45

    sterling45 New Member

    Joined:
    Aug 13, 2006
    Messages:
    46
    Likes Received:
    1
    Trophy Points:
    0
    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?
     
  5. pietrom

    pietrom New Member

    Joined:
    Feb 2, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    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...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice