js奇效-从Frame窗口跳出框架,整体跳出
js特效-从Frame窗口跳出框架,整体跳出
onclick="javascript:parent.window.location='${pageContext.request.contextPath }/UserLogout.action'"
点击的时候退出,并整体返回到登录页面。
如果不加parent或者 top 就会只在topFrame框架上跳转。
记录完毕
onclick="javascript:parent.window.location='${pageContext.request.contextPath }/UserLogout.action'"
点击的时候退出,并整体返回到登录页面。
如果不加parent或者 top 就会只在topFrame框架上跳转。
记录完毕
1 楼
leesazhang
2011-08-30
谢谢
2 楼
leesazhang
2011-08-30
我用过的是:
<a href="javascript:parent.window.location='${pageContext.request.contextPath }/logout.do'">退出系统</a>
<a href="javascript:parent.window.location='${pageContext.request.contextPath }/logout.do'">退出系统</a>