如下所示:
<frameset cols="150,*" rows="*" frameborder="NO" border="0" bordercolor="#000000">
  <frame src="Panel.html" name="panel" scrolling="NO" noresize frameborder="NO" >
  <frameset cols="*" rows="78,*" frameborder="NO" border="0" bordercolor="#000000">
    <frame src="Title.html" name="title" scrolling="NO" noresize >        
    <frame src="FirstFrame.html" name="main" scrolling="AUTO" noresize >
  </frameset>
</frameset>
其中 FirstFrame.html 也是由 frame组成的,如下:
<frameset cols="*" rows="*,1" frameborder="NO" border="0" bordercolor="#000000">
  <frame src="First.html" name="up" scrolling="NO" noresize >        
  <frame src="Detect.html" name="down" scrolling="AUTO" noresize >
</frameset>其中detect.html 只有5秒钟刷新一次页面的功能。
在 first.html 中有跳转操作。现在的问题是,当点击跳转按钮跳转后,Detect.html 页面会继续刷新页面。请高手告知怎么解决问题?非常感谢

解决方案 »

  1.   

    用window.top可以得到上一级frame,楼主可以试一下。
      

  2.   

    楼主描述的不清楚。
    如果想控制整个页面的跳转的话。
    把链接或者表单的target 设置为 "_top".或者用javascript设置。top.location.href = "......" ;
      

  3.   

    如果是上一级框架跳转的话。
    target="_parent"或者
    parent.location.href = "......";推荐个网址
    http://www.w3school.com.cn/htmldom/prop_anchor_target.asp
      

  4.   

    取得上层frame: window.parent
    取得上上层frame: window.parent.parent
    取得和自己frame同级别的frame: window.parent.frames[被操作的frame的name]
    改变和自己frame同级别frame的链接: window.parent.frames[被操作的frame的name].location.href = '新的链接'