<script type="text/javascript">
var time=10;
function closeWindow(){
window.setTimeout('closeWindow()',1000);
if(time>0){
document.getElementById("show").innerHTML=" 倒计时<font color=red>"+time+"</font>秒后关闭当前窗口";
time--;
}
else{
window.opener=null; //关闭窗口时不出现提示窗口
window.close();
}
}
</script>
<body onload="closeWindow();">

<div >
倒计时10秒后关闭当前窗口
</div>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2021-12-23
  • 2021-07-05
  • 2021-12-26
  • 2021-12-08
  • 2022-03-01
  • 2021-10-13
  • 2022-12-23
相关资源
相似解决方案