用心感受生活
I can make you smile.
做个平凡、快乐、自信的小女人!

        做web项目,难免要用到框架,如果需要从这个框架跳转到另外一个框架,如果用单纯页面跳转方法,也就是Response.Redirect("../Produce/index.aspx "); 得到的效果是框架中嵌套框架。

        要脱离整个框架,就要使用如下代码:
        a.如果是超链接的话,代码如下:
        <A href="#" onclick="window.parent.location.href('../Produce/index.aspx')"></A>
        b.非链接的,代码如下:
        Response.Write("<script language='javascript'>window.parent.location.href='../Produce/index.aspx';</script>");

posted on 2005-09-12 15:18  为自己加油!  阅读(322)  评论(0编辑  收藏  举报