Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Load external page with auto-refresh

    I need a code to load an external page with auto-refresh

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,156
    Thanks
    203
    Thanked 2,548 Times in 2,526 Posts
    Put this line at the top of the page you wish to refresh :

    <meta http-equiv=refresh content="X; URL=/..../index.html">

    Replace X with an integer representing the number of seconds before the refresh.

    The URL can be a path on the local computer or a link like http://www.thatothersite/index.html


    For a JavaScript method (which naturally only works if JavaScript is enabled) see:-

    http://www.javascriptkit.com/script/...utofresh.shtml


    Many users find automatic page-shunting to be very annoying. They prefer to surf the web at their own speed, under their own control, and resent sites that take this control away from them by moving them on to a new page at a speed chosen by the page author rather than when the user follows a link. Maybe the user wants more time to read the text or view the graphics on the first page before going on to the next one, or maybe he or she is bored with the page and wants to move on right away, not wait 30 seconds for the refresh to move on.

    If you've scrolled down in a long page, while reading it or while you've left the page in your browser while you went and did something else, it's annoying to find you've been placed back at the beginning of the page because it reloaded on you.



    A child of five would understand this. Send someone to fetch a child of five.
    Groucho Marx
    Last edited by Philip M; 08-21-2008 at 07:47 AM.

  • Users who have thanked Philip M for this post:

    arallie (08-21-2008)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •