主页面mainIndex.htm:
<FRAMESET border=0 name=apptop frameSpacing=0 rows=50,24,*,22 frameBorder=0>
<FRAME name=topFrame src="index.files/top.htm" noResize scrolling=no>
<FRAME name=midFrame src="index.files/mid.htm" noResize scrolling=no  target="main">   <FRAMESET border=0 name=content frameSpacing=0 frameBorder=0 cols=140,*>
               <FRAME name=menu src="index.files/menu.htm" 
                      frameBorder=no scrolling=no target="main">
               <FRAME name=main src="index.files/index.htm" 
                     frameBorder=no scrolling=yes target="_self">
  </FRAMESET>
      <FRAME name=bottom src="index.files/version.htm" noResize scrolling=no></FRAMESET>A:在子框架menu.htm中:
        <TR>
          <TD style="PADDING-LEFT: 20px" bgColor=#b9dcf3 height=21>- <A id=m0 
            onclick="top.main.location.replace('URL');current_menu(2)" //这里的URL到底是何意?location.replace()???           href="http://localhost:8080/BOM/index.files/new.htm" >点击链接</A></TD></TR>
                                                    //此链接的页面new.htm是要取代下面框架的页面index.htm
                    
B:子框架index.htm中:
      <TR>
          <TD align=middle></TD>
          <TD align=middle><FONT face="Courier New"> 
            旧页面</A></FONT>
          <TD align=middle></TD>
    </TR>

解决方案 »

  1.   

    top就是mainIndex.htm
    main就是FRAME name=main 
    replace是替换指定window的地址
      

  2.   

    <A  onclick="top.main.location='http://www.baidu.com'"          href="http://localhost:8080/BOM/index.files/new.htm" >点击链接 </A> 
      

  3.   

    <A  onclick="top.main.location='http://www.baidu.com'"          href="javascript:void('')" >点击链接 </A> 刚才没明白你的意思,现在明白了.
      

  4.   

    top的意思是上一个框架,
    main是某框架中的一个帧(即某个frame的名字),
    location为是什么要放到这里边,(可能为jsp.html文件等),
    replace为把前面的js对象替换掉(这里替换的是top.main.location).
      

  5.   

    top的意思是上一个框架, 
    纠正-> top是最上层框架
    parent是上一层,其他正确.^_^
      

  6.   


      多谢up楼主!
      但将URL赋为:index.htm后,虽然B框架显示了链接的内容,可A框架也显示了