<html>
<head>
<title>JavaScript page refresh example</title>
<script language="javascript" type="text/javascript">
function confirm_refresh() {
var Refresh = confirm("Do you want to refresh the page?");
if (Refresh) {
setTimeout("location.reload(true);", 5000);
}
}
</script>
</head>
<body>
<p>Click Here: <a href="javascript:confirm_refresh();">Refresh this page after 5 seconds.</a></p>
</body>
</html>