DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Refresh A Web Page Using JavaScript
Source: <a href="http://www.quackit.com/javascript/javascript_refresh_page.cfm">JavaScript Refresh Page</a> [quackit.com]
<snip>
Example JavaScript Refresh code
<!-- Codes by Quackit.com --> <a href="javascript:location.reload(true)">Refresh this page</a>
Auto-Refresh
<!-- Codes by Quackit.com -->
<html>
<head>
<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
</snip>






Comments
Snippets Manager replied on Tue, 2010/04/27 - 8:22am