Refresh using button click
<input type="button" value="Reload" onClick="document.location.reload(true)">
Refresh in particular time interval
<html>
<head>
<script type="text/JavaScript">
<!--
function refreshMe(timeoutPeriod) {
setTimeout("location.reload(true);",refreshMe);
}
// -->
</script>
</head>
<body onload="JavaScript:refreshMe(2000);">
</body>
</html>
by varying the timeout interval we can change the time interval between each refresh
<input type="button" value="Reload" onClick="document.location.reload(true)">
Refresh in particular time interval
<html>
<head>
<script type="text/JavaScript">
<!--
function refreshMe(timeoutPeriod) {
setTimeout("location.reload(true);",refreshMe);
}
// -->
</script>
</head>
<body onload="JavaScript:refreshMe(2000);">
</body>
</html>
by varying the timeout interval we can change the time interval between each refresh
No comments:
Post a Comment