框架页中点击一个超链接打开多个页面

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    
<title>Untitled Pagetitle>
   
<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();">opena>   
<p><href="#" onclick="openwindows('Default4.aspx','Default3.aspx')">lefta>p>
body>
html>

你可能感兴趣的:(Web开发)