Quick afterthought: This will work too (and it's a lot shorter): <script type="text/javascript"> <!-- function init() { setInterval(self.close, 5000); } onload = init; //--> </script> -- /nik