-- a.htm ---
<a href="p1.htm" class="submenu" target="frm">p1</a>
<a href="p2.htm" class="submenu" target="frm">p2</a>          
<a href="p3.htm" class="submenu" target="frm">p3</a>          
<iframe name="frm" scrolling="no" width="100%" height="100%" src="p1.htm">
</iframe>-- b.htm ---
在b.htm中,可实现跳转到a.htm并指定iframe某一个连接。(例如:p3.htm)

解决方案 »

  1.   

    不如用参数.
      在a页面接受,
       然后那个iframe 就用 document.write 输出吧
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    <head>
    <script>
    function ss(url){
    document.getElementById('ll').src = url;
    }
    </script>
    </head>
    <BODY>
    <a href="#" class="submenu"  onClick="ss('http://www.sina.com')">sina </a> 
    <a href="#" class="submenu"  onClick="ss('http://www.baidu.com')">baidu </a>          
    <a href="#" class="submenu"  onClick="ss('http://www.google.com')">google</a>          
    <iframe id='ll' name="frm" scrolling="no" width="100%" height="100%" src="http://www.baidu.com"> 
    </iframe> </BODY></HTML>
      

  3.   

    a.htm
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>p1 p2 p3</title>
    <script>
    window.onload = function (){
    var url = unescape(window.location.href);
    document.getElementsByName("frm")[0].src = url.split("?")[1].split("=")[1];}
    </script>
    </head><body>
    <a href="p1.htm" class="submenu" target="frm">p1 </a> 
    <a href="p2.htm" class="submenu" target="frm">p2 </a>          
    <a href="p3.htm" class="submenu" target="frm">p3 </a>          
    <iframe name="frm" scrolling="no" width="100%" height="100%" src="p1.htm"> 
    </iframe>
    </body></html>
    b.htm
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>b</title>
    <script>
    function go(){
    var str = "a.htm?h=http://www.baidu.com";
    window.location.href = escape(str);
    }
    </script>
    </head><body>
    <input type=button value="Go A" onclick="go()">
    </body></html>