IE8倒数关闭窗口
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题</title> </head> <body> <div id="close" style="font-size:30px;text-align:center;"> </div> <script type="text/javascript"> var i = 3; var _c = document.getElementById('close'); setInterval(function(){ if(i < 0){ window.opener=null; window.open('','_self'); window.close(); }else{ _c.innerHTML = '页面即将关闭'+i+'秒!' i--; } },1000); </script> </body> </html>