首页 > 其他 > 详细

IE8倒数关闭窗口

时间:2016-10-12 10:44:26      阅读:130      评论:0      收藏:0      [点我收藏+]
<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>

  

IE8倒数关闭窗口

原文:http://www.cnblogs.com/gubook/p/5951540.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!