<script> var i = 1; setInterval(function () { document.body.innerHTML = i++; }, 500); setTimeout(function () { location.reload(); }, 2000); </script>