QQ
菜鸟也能煮酒论英雄
他山之石,可以攻玉。善于从他人处汲取营养的人,才能不断地取长补短,使自己走向成功

 

<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><href="#" onclick="openwindows('Default4.aspx','Default3.aspx')">left</a></p>
</body>
</html>
posted on 2007-07-15 15:57  江太公  阅读(963)  评论(0编辑  收藏  举报