<title>倒计时关闭网页</title>
<head>
<script language="javascript">
<!--
function clock(){
document.title="本窗口将在"+i+"秒后close!"
if(i==0){
clearTimeout(st)
window.opener=null
window.close()}
i = i -1
st = setTimeout("clock()",1000)
}
var i=5
clock()
//-->
</script>
</head>
<body>
</body>
</html>
<script type="text/javascript">document.ondblclick=function(){
window.opener=null
window.close()
}
</script>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)