打开新窗口更新后刷新父窗口

打开新窗口更新后刷新父窗口,这个是经常用到的技术,小结下如下:

 <a href="javascript:window.open('<%=path%>‘,'','height=500,width=800,toolbar=no,menubar=no,scrollbar=yes,resizeable=yes');void(0);"/>xxxx</a>

子窗口里完成操作后
String str = "<script language='javascript'>alert('该问题已经回答完毕,不能新增回答,或该问题已有人在解答中');window.opener.location.href=window.opener.location.href;self.close();</script>";
注意
window.opener.location.href=window.opener.location.href;self.close();
即可

你可能感兴趣的:(更新)