Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: HTML code to refresh page every X seconds...?

  1. #1
    jashsayani's Avatar
    jashsayani is offline Learning Programmer
    Join Date
    Jun 2008
    Location
    Salt Lake City, UT
    Posts
    41
    Rep Power
    0

    HTML code to refresh page every X seconds...?

    Hi,

    I want to make a HTML page that refreshes every X seconds. Like 10 secs/20 secs.

    How do I make it refresh on its own....?


    Thanks.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: HTML code to refresh page every X seconds...?

    You have to use JavaScript to make the page refresh.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    nullbyte's Avatar
    nullbyte is offline Programming Professional
    Join Date
    Oct 2007
    Location
    ~
    Posts
    302
    Rep Power
    19

    Re: HTML code to refresh page every X seconds...?

    You can do it with HTML too.
    Code:
    <!-- n = seconds -->
    <meta http-equiv="refresh" content="n" />

  5. #4
    Join Date
    Sep 2008
    Location
    Kosovo
    Posts
    4,032
    Rep Power
    44

    Re: HTML code to refresh page every X seconds...?

    worked for me with HTML .. thnx nullbyte

  6. #5
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: HTML code to refresh page every X seconds...?

    I am glad to see that Jordan recommended some XHTML instead of the awful HTML that dargueta provides.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  7. #6
    jashsayani's Avatar
    jashsayani is offline Learning Programmer
    Join Date
    Jun 2008
    Location
    Salt Lake City, UT
    Posts
    41
    Rep Power
    0

    Re: HTML code to refresh page every X seconds...?

    Quote Originally Posted by nullbyte View Post
    You can do it with HTML too.
    Code:
    <!-- n = seconds -->
    <meta http-equiv="refresh" content="n" />
    Thanks a lot.

    ____________

    SOLVED

  8. #7
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: HTML code to refresh page every X seconds...?

    If you don't mind me saying, this question could be solved in two seconds flat with a Google search.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  9. #8
    Jordan Guest

    Re: HTML code to refresh page every X seconds...?

    10 seconds seems slow. At home some webpages take 15-20 seconds for me to load. Your page would reload before it ever finished loading the first time. Have you considered using AJAX to make your page dynamic without refreshing?

  10. #9
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: HTML code to refresh page every X seconds...?

    Quote Originally Posted by Jordan View Post
    10 seconds seems slow. At home some webpages take 15-20 seconds for me to load. Your page would reload before it ever finished loading the first time. Have you considered using AJAX to make your page dynamic without refreshing?
    10 seconds seems slow? I thought that was quite fast.

  11. #10
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: HTML code to refresh page every X seconds...?

    Sometimes CC takes about 25 seconds for me to load.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VS2008 Get/Download HTML web page source code with login & password
    By lordwittie in forum Visual Basic Programming
    Replies: 0
    Last Post: 03-11-2011, 06:40 AM
  2. Is this code supposed to appear in the HTML page info?
    By eindoofus in forum ASP, ASP.NET and Coldfusion
    Replies: 1
    Last Post: 11-07-2010, 05:08 PM
  3. how to refresh a page?
    By :-[yc]-: in forum Java Help
    Replies: 2
    Last Post: 05-30-2007, 05:47 AM
  4. Special tags to display html code on the page
    By Bodyag in forum HTML Programming
    Replies: 4
    Last Post: 04-10-2007, 07:38 AM
  5. Page Refresh
    By dirkfirst in forum PHP Development
    Replies: 2
    Last Post: 10-31-2006, 09:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

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