哪种假设对?
both are correct那么在子窗口需要怎样才能刷新父窗口呢?
window.opener.location.reload(true);for example
parent.html:
<script>
name="1222";
document.write(new Date());
</script><a href="child.html" target="_blank">child</a>
<input type="button" onclick="window.open('child.html','_blank')" value="open child">child.html:
<script>
alert(window.opener.name);
window.opener.location.reload(true);
</script>
both are correct那么在子窗口需要怎样才能刷新父窗口呢?
window.opener.location.reload(true);for example
parent.html:
<script>
name="1222";
document.write(new Date());
</script><a href="child.html" target="_blank">child</a>
<input type="button" onclick="window.open('child.html','_blank')" value="open child">child.html:
<script>
alert(window.opener.name);
window.opener.location.reload(true);
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货