定时打开新窗口并关闭原窗口
2008-01-05 08:47:26 来源:WEB开发网核心提示:打开 <script language="javascript"> function refreshHtml() {window.setTimeout("openw()",1000); } function openw() {var hWnd=window.open(
打开
<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>。
赞助商链接