2
<a href="#" onclick=window.open('4','','')>
4
<input type=button onclick='opener.parent.frames[2].loaction="新页面";self.close()'>

解决方案 »

  1.   

    不行啊,效果没出来。
    就这样就行吗?
    不用加javascript语句?
      

  2.   

    frameset.htm:<frameset rows="64,*">
    <frame name="banner" src="" scrolling="no" noresize>
    <frameset cols="150,*">
    <frame name="contents" src="2.htm">
    <frame name="main" src="">
    </frameset>
    </frameset>
    2.htm:
    <body>
    这是2.htm
    <a href="4.htm">链接4</a>
    </body>4.htm:
    <body >
    <INPUT id="Button1" onclick ="window.open('2.htm','contents');;window.open('3.htm','main');"type="button" value="open" name="Button1">
    这是4
    </body>
    3.htm: <body >
    3.htm
    </body>
      

  3.   

    to:
    shyslysky(飞天) 效果还是没出来。
    在点击4的按钮时,没有链接到3啊。
    怎么办??
      

  4.   

    我的代码是调试通过的,一共有index.htm,2.htm,3.htm,t.htm四个页面!
      

  5.   

    我的代码是调试通过的,一共有index.htm,2.htm,3.htm,4.htm四个页面!
    要注意frame的name是否一致!
      

  6.   

    这样吧。看看我的源码:
    找找问题在哪,好吗?这相当是1:topFrame<frameset rows="8%,92%" cols="*" framespacing="1" border="1" bordercolor="#999999">
      <FRAME name=topFrame marginWidth=0 marginHeight=0 src="top.htm" frameBorder=NO noResize scrolling=no target="_self">
      <frameset rows="*" cols="20%,80%" framespacing="1" border="1" bordercolor="#CCCCCC">
        <frame name=submenu marginWidth=0 marginHeight=0 src="a/Main.htm" frameBorder=NO  scrolling=auto >
        <frame name=content marginWidth=0 marginHeight=0 src="rili.htm" frameBorder=NO scrolling=yes>
      </frameset>
      <noframes>
      </noframes>
    </frameset>这相当是2:submenu <script language="javascript">
     function show(){
     window.showModalDialog("chuangjian.htm","","status:no;scrolling:yes;dialogWidth=600px;dialogHeight=250px;dialogLeft:100px; dialogTop:200px; ");
    }
    </script><tr>
    <td align="left" valign=top>        
    <font size="2"><a href="chuangjian1.htm" target="content" onclick="show()">创建</a></font></td>
    </tr>这项当是4.htm:chuangjian.htm<td width="51%" align="left" valign="bottom"><input type="submit" name="Submit" value="确定"  onclick='opener.parent.frames[content].loaction="weihu.htm";self.close()' >
    这相当是3.htm:content<body>weihu
    </body>
      

  7.   

    chuangjian.htm:
    <body >
    <INPUT id="Button1" onclick ="window.open('2.htm','submenu');window.open('3.htm','content');"type="button" value="open" name="Button1">
    这是4
    </body>