首页 > 学院 > 开发设计 > 正文

定时打开新窗口并关闭原窗口

2019-11-18 15:06:32
字体:
来源:转载
供稿:网友

  打开
<script language="javascript">
function refreshHtml()
{window.setTimeout("openw()",1000);
}
function openw()
{var hWnd=window.open("http://pageroom.533.net/", "hi", "height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no");
}window.onload=refreshHTML</script>

关闭
<script language="Javascript">
function refreshHTML()
{window.setTimeout("ccc()",2000);
function ccc()
{hWnd.close();
}
}window.onload=refreshHTML</script>。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表