<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Page Timed Reload !</title>
<script type="text/javascript">
var counter = 1, nor = 0;
function startCounter(){
document.myForm.myText.value = counter++;
if (counter == 15) {
document.location.reload();
nor++;
document.write("The page has been reloaded ") + nor + document.write(" times !")
}
}
var myInterval = window.setInterval("startCounter()", 1000)
</script>
</head>
<body onload="startCounter()">
<form name="myForm">
<!-- THE TIMER BOX -->
<input type="text" size="20" value="" name="myText" />
</form>
</body>
</html>
I want this page to be reloaded every 15 seconds, and show the number of reloads till that time.
I also wish to show a box where the timer is shown !
I have not been able to completely do it ... I need help in this !!