<title> Reload the Page</title>
<script type="text/javascript">
function ref1()
{
var time=document.getElementById("txttime").value;
if(time!="" && time!=0)
{
time=time*1000;
setTimeout("location.reload();",time);
alert("page reload after the 5 seconds");
}
else if(time=="")
{
time=10000;
setTimeout("location.reload();",time);
alert("page reload after the 10 seconds");
}
}
</script>
</head>
<body onload="return ref1()">
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>Enter the time:</td><td><input type="text" id="txttime" /></td></tr>
<tr><td align="center"><input type="button" value="enter" id="bttme" onclick="return ref1()"; /></td></tr></table>
</div>
</form>
</body>
</html>