定时打开新窗口并关闭原窗口
类别: JavaScript教程
打开
<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>。
<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>。
- 上一篇: 在主页中编制音频播放器
- 下一篇: 怎样让弹出窗口关闭后不再出现
-= 资 源 教 程 =-
文 章 搜 索