Results 1 to 4 of 4

Thread: refresh page?

  1. #1
    Join Date
    May 2010
    Location
    Sacramento, CA
    Posts
    91
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Default refresh page?

    Hello, i have absolutely no experience with javascript.

    I am all php and mysql

    I just have a quick question:

    Code:
    <!--Yee Ha! -->
    <a href="javascript:location.reload(true)">Refresh this page</a>
    I would like to know how to use javascript to refresh a page after a certain period of time. The above code looks like it will just 'reload', but i would like to set it to reload every 5 minutes If you could either point me towards a tutorial, or just smack me for asking a retarded question...either way i appreciate the response ;-)



    -Cory

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Here:
    Code:
    setTimeout(function(){
      location.href.reload(true);
    }, 50000);
    Jeremy | jfein.net

  3. #3
    Join Date
    May 2010
    Location
    Sacramento, CA
    Posts
    91
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Default

    Thanks bro

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    No problem, glad to help.

    It seems your topic is solved... Please set the status to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"
    Jeremy | jfein.net

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
  •