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 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question How do I get JS to refresh page everytime a person arrives at a page?

    I have this script:
    <script>
    function RefreshWindow() {
    window.history.go(0)
    }
    </script>

    The problem is that it doesn't always give me the latest version of my webpage. What am I doing wrong? Would deleting the window.history.go(0) part fix this or make it worse?
    Thanks! Newbie here.

  • #2
    New Coder TripperTreats's Avatar
    Join Date
    Oct 2006
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This page describes exactly what you need to do.

    http://grizzlyweb.com/webmaster/javascripts/refresh.asp
    Psychedelic digital art at www.trippertreats.com.

    "And in the end, the love you take
    is equal to the love you make
    ."

  • #3
    New Coder
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks! The button code does work.

    The other script refreshes the page through out the time the player is there and will not work with a memory game. There was no way to change it to only refresh one time only that I could find. It also refused to load the memory game.


  •  

    Posting Permissions

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