js 刷新父页面

父页面放到head下面

<script type="text/javascript">
function refreshPage(){
 this.location = window.location;
}
</script>

子页面也是放到head下面

<%if(request.getAttribute("actionflog")!=null && "modiok".equals(request.getAttribute("actionflog").toString())){%>
<script language="javascript">
 window.opener.refreshPage();
 window.close();
</script>
<%}%>

原文地址:https://www.cnblogs.com/anuoruibo/p/2442494.html