Results 1 to 2 of 2

Thread: Refresh browser

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    Hampton Beach
    Posts
    513

    Question Refresh browser

    Is there a way to refresh the browser every 15 seconds using javascript? Also is there a way to have the page refreshed without the user knowing so? Sometimes the user may be reading half way down the page and then the browser refreshes and puts the page back to the top... Is there a way to do this?

  2. #2
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292
    don't know about the second part of your question
    but for the refresh it would be something like this

    Code:
    <script>
    window.setInterval("window.location.href='page.html'", 15000);
    </script>
    personaly i would do this using meta tag
    that way it will refresh even if scripting is disabled
    Code:
    <META HTTP-EQUIV="refresh" content="15;URL=page.html">
    cheers
    bsw

Posting Permissions

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



Click Here to Expand Forum to Full Width