<a href="#" onclick="document.all.IFrameID1.src='1.htm';document.all.IFrameID2.src='2.htm';">test</a>

解决方案 »

  1.   

    <a onclick="doPage();">test</a><iframe src="1.htm" name =1 ><iframe src="2.htm" name =2 ></iframe></iframe>function doPage()
    {
       document.all.1.src='page1.htm';
       document.all.2.src='page2.htm';
    }
      

  2.   

    不行呢。用狐飞的代码说<a href="#"  onclick="doPage()">test</a> 这行缺少对象。document.all.IFrameID1.src='1.htm' 用这个办法把iframeid1 改为对应的name也没有效果
      

  3.   

    <a href="#" onclick="1.location.href='1.htm';2.location.href='2.htm';">test</a>
    <iframe src="1.htm" id=1 ><iframe src="2.htm" id=2 ></iframe></iframe>
    我是这样运行成功了。谢谢二位的回答