Click to See Complete Forum and Search --> : Refresh browser
JohnSmith
Jan 28th, 2004, 08:46 AM
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?
bsw2112
Jan 28th, 2004, 02:05 PM
don't know about the second part of your question
but for the refresh it would be something like this
<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
<META HTTP-EQUIV="refresh" content="15;URL=page.html">
cheers
bsw
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.