系统超时页面 重定向到首页

<%@ page contentType="text/html;charset=UTF-8"%>

<script language="javascript">

 alert('超时/或未登录');
 if(window.opener){//新窗口
 var win=window.opener;
 win.top.location.href=首页;
 window.close();
 }else{
 window.top.location.href=首页;
 }

</script>

你可能感兴趣的:(JavaScript,html)