ftvgirls 百度云:在DW中如何实现在关闭一个网页的同时打开另一个网站

来源:百度文库 编辑:神马品牌网 时间:2024/05/13 04:36:51
在DW中如何实现在关闭一个网页的同时打开另一个网页的效果?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body onunload="MM_openBrWindow('http://www.baidu.com','','')">
内容
</body>
</html>

---------------------------------------------

参考这段代码,<body>里的http:// 就是你想弹出的网页,onunload是动作触发(关闭此网页)