一个网页里有好几个frame,在其中一个frame里面有退出链接,点此链接,整个网页将跳转到登陆页面,
登陆页面为另外一个页面(就是说是一个frame)  跳转语句该怎么写?谢谢

解决方案 »

  1.   

    <input type="button" onclick="top.location.href='login.html'" value="退出"/>
      

  2.   


    window.top.location.href= 'login.htm'
      

  3.   

    top 是什么意思?是跳出整个frame?跳到别的单独的页面?是这意思吗
      

  4.   

    <a href="right.php" target="rightFrame">管理首页</a> 
    像这么写 不是说右边的frame会刷新嘛我要的效果是,左边右边frame都没了,变成另外一个单独的登陆页面
    不知道有谁听懂我意思了。写出简单代码 谢谢
      

  5.   


    像你这么写确实没问题~ 很感谢不过想写成链接形式,button改成链接  它就不对只退出它一个frame 别的frame还照样显示出来。
      

  6.   

    连接也可以啊
    <a href="#" onclick="top.location.href='login.html'">退出</a>
      

  7.   


    强~~ 果然 , 但不理解 # 是什么意思?还有top具体是啥意思啊?……
      

  8.   

    <a href="login.html" target="_top">退出</a>window.top 返回整个浏览器窗口的最顶端的框架页对象。
    target="_top" 等效,目标窗口是 整个浏览器串口最顶端的页面
      

  9.   

    <a onclick="top.location.href='login.html'">
    你觉得糊涂的话就不要href属性, #我记得是代表锚记和跳转到本页面吧
      

  10.   

    Any frame in a window can refer to any other frame through the use of the frames, parent, and top properties of the Window object.可以看看window下frame是怎么组织的。然后各个之间的关系就比较清楚了