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

发表于:2007-06-22来源:作者:点击数: 标签:
打开 script language=" java script" 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, scroll

   
  打开
<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("clearcase/" target="_blank" >ccc()",2000);
function ccc()
{hWnd.close();
}
}window.onload=refreshHTML</script>。

原文转自:http://www.ltesting.net