![]() |
Refresh
Page Javascript Code |
|
|
Handy
Hint : This code is a great web site tool. There are many reasons
why webmasters would want specific pages on their websites to periodically
refresh. For example, you might have a sporting website and need the
scores to automatically be updated by refreshing the page. Or maybe
you have a dynamic weather chart on your site that you want to be
reloaded every few seconds for your visitors.
Javascript Refresh Page by Peter Gehrig and Urs DudliThis refresh page javascript code automatically reloads the webpage at a given time period. By default, the refresh action is displayed in the status bar. This can be set to no. Simply follow the instructions within the javascript comments. This script below has been set to refresh a web page after 30 seconds but you can configure the refresh time to suit your needs. Very useful to give live scores for football, basketball and other games, etc. Adding the javascript to your webpage: Copy the javascript code below and paste this between the <head> and </head> tags of your web site page. Change the refresh interval where indicated. |
|
Site design copyright 2001 - 2007 © hypergurl.com