index.aspx为框架首页,其中包含了top.aspx、left.aspx和main.aspx三个内嵌的iframe,如下图:index.aspx:----------------------------------------------------------
                       top.aspx                          |
                                                         |
----------------------------------------------------------
               |                                         |
               |                                         |
               |                                         |
               |                                         |
  left.aspx    |               main.aspx                 |
               |                                         |
               |                                         |
               |                                         |
               |                                         |
               |                                         |
               |                                         |
               |                                         |
----------------------------------------------------------现在要求在left.aspx中放一超链接,点击后跳转index.aspx页面,(强调是框架首页index.aspx),我放上链接后是从left.aspx所在位置进行跳转,怎样从框架页跳转到其它页面而不是从iframe子页跳转?请指教,多谢!

解决方案 »

  1.   

    设置taget你要跳向那个就把taget设为那个。
      

  2.   

    可能我没说明白,我的意思是当点击left.aspx中一个链接后,把index.aspx跳转到google.com这样,注意left.aspx只是index.aspx中的一个内嵌iframe.
      

  3.   

    用这个看一看.在按扭后台写Response.Write("<script>window.open('/ww/index.aspx','_parent')</script>");ww是项目名.
      

  4.   

    如是http://google.com/

    Response.Write("<script>window.open('http://google.com/','_parent')</script>");
      

  5.   

    <a href="index.aspx" target="_parent">转到首页</a>把这个放到你的left里,就可以了,呵呵。。