标签:
开发中从一个页面打开新窗口页面,当关闭新窗口页面时,需要刷新原本的页面,找到了如下方法:
A页面中:
<a target="_blank" href="B.aspx"></a>
B页面中:
<input type="button" value="关闭" onclick="Close();" />
<script type="text/javascript">
window.opener.location.reload(); //或者window.opener.location.href="A.aspx";
window.close();
</script>
从一个页面打开新窗口页面,当关闭新窗口页面时,刷新原本的页面的一个方法
标签:
原文地址:http://www.cnblogs.com/qk2014/p/4666797.html