<body onLoad="javascript: timer = setInterval('a()', 1000)"> <script>var time = 1000;var x = 10;function a(){x -= 1;document.getElementById('w').innerHTML=" Перезагрузка лога - "+x+" сек. "; if(x==0) {window.location.reload();}} </script> <div id="w"></div>