PDA

View Full Version : Refresh Page - Automatic



hEll0_w0lrd
12-03-2009, 03:48 AM
Keep your content fresh. Use this JavaScript (http://www.javascriptbank.com/javascript/) to automatically reload a fresh copy of your Web page from the server. You determine the time (http://www.javascriptbank.com/javascript/time/) de... detail (http://www.javascriptbank.com/refresh-page-automatic.html/en//) at JavaScriptBank.com - 2.000+ free JavaScript codes (http://www.javascriptbank.com/)


http://www.javascriptbank.com/javascript.images/browser/refresh-page-automatic.jpg (http://www.javascriptbank.com/javascript/browser/window/refresh-page-automatic/preview/en/)
Demo: Refresh Page - Automatic (http://www.javascriptbank.com/refresh-page-automatic.html/en/)


How to setup

Step 1: Place JavaScript below in your HEAD section
JavaScript

<script type="text/javascript">
<!-- Begin
// Created by: Lee Underwood
function reFresh() {
window.open(location.reload(true))
}
/* Set the number below to the amount of delay, in milliseconds,
you want between page reloads: 1 minute = 60000 milliseconds. */
window.setInterval("reFresh()",300000);
// End -->
</script>
<!--
This script downloaded from www.JavaScriptBank.com
Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
-->








JavaScript Spotlight (http://www.javascriptbank.com/spotlight-index.html) - JavaScript Validate E-Mail (http://www.javascriptbank.com/validate-e-mail.html) - AJAX Page Content Loader (http://www.javascriptbank.com/ajax-page-content-loader.html/en/)