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

Snippets has posted 5883 posts at DZone. View Full User Profile

Refresh A Web Page Using JavaScript

03.21.2010
| 3014 views |
  • submit to reddit
        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 - 7:22am

Thanks for useful information. I would try it. I want to add form builder as a nice site for creating any forms on your web site.