var open_flag=window.open("","","width="+(window.screen.availWidth)+",height="+(window.screen.availHeight)+",left=0,top=0,toolbar=no,menubar=no,status=yes,location=no,scrollbars=yes,resizable=yes");
open_flag.location.href="<%=request.getContextPath()%>/main.jsp";
if(open_flag== null){
location="<%=request.getContextPath()%>/main.jsp";
}
else
{
focus();
window.opener =window.self;
window.open("","_self");
window.close();
open_flag.location.href="<%=request.getContextPath()%>/main.jsp";
if(open_flag== null){
location="<%=request.getContextPath()%>/main.jsp";
}
else
{
focus();
window.opener =window.self;
window.open("","_self");
window.close();
}
貌似在ie9里面没有效果