<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<script language="javascript">
// left 和 main 分别是框架的名称或者是ID
//方法一:
function openwindow(){
window.open("Default4.aspx","left");
window.open("Default3.aspx","main");
}
//方法二:
function openwindows(top,bottom){
parent.document.all.left.src = top;
parent.document.all.main.src = bottom;
}
</script>
</head>
<body>
<a href="#" onclick="openwindow();">open</a>
<p><a href="#" onclick="openwindows('Default4.aspx','Default3.aspx')">left</a></p>
</body>
</html>
框架页中点击一个超链接打开多个页面
最新推荐文章于 2022-07-19 01:26:00 发布