我用的是frameset框架,在框架上一个页面有退出登陆的链接,现在点击这个链接能将session清空,但是跳转不是整个frameset跳到新页面,只是有退出登陆链接的那个页面跳转到了新页面.
用javascript把退出登陆做成关闭窗口的链接也不行,在frameset中好象不起作用.
我该怎么做才能使整个frameset页面跳转到新页面啊? 或者用别的方法做退出登陆?
用javascript把退出登陆做成关闭窗口的链接也不行,在frameset中好象不起作用.
我该怎么做才能使整个frameset页面跳转到新页面啊? 或者用别的方法做退出登陆?
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>::::::::::::::厦门新闻出版局---功能页::::::::::::::::::::</title>
<frameset cols=15%,86% id="parentFrame">
<frame src="leftMenu.jsp" name="left" >
<frameset rows=4%,* cols="*" framespacing="0" frameborder="0">
<frame src="top.jsp" name="top" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" >
<frame src="userManage.jsp" name="main">
</frameset>
</frameset>
<noframes></noframes>logout.jsp
<%@ page
language="java"
contentType="text/html;charset=gb2312"%>
<%
session.removeAttribute("LoginID");
session.removeAttribute("Role");
out.println("<script>");
out.println("window.top.location.href='index.jsp';");
out.println("</script>");
%>
logout.jsp要怎么调用啊 我直接跳转到logout.jsp 整个框架还是只有一个页面会跳转别的都不动啊
退出按钮就在leftMenu.jsp上,<a href="logout.jsp">退出</a>
我直接用<a href="javascript:window.close()">关闭窗口</a> 怎么会不起作用啊..