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>
<%}%>

posted on 2012-04-11 15:49  anuo_ruibo  阅读(132)  评论(0编辑  收藏  举报

导航