Javascript 刷新父项而不关闭弹出窗口
我使用gettoup.com弹出窗口 在用php为重定向提供标题之前,我有以下javascript:Javascript 刷新父项而不关闭弹出窗口,javascript,Javascript,我使用gettoup.com弹出窗口 在用php为重定向提供标题之前,我有以下javascript: <script language="JavaScript"> window.parent.location.reload(); </script> window.parent.location.reload(); 这将刷新父页面而不关闭te弹出窗口,但不会发生任何事情。 有什么问题吗?您想要的不是.parent(),而是窗口。opener: <script
<script language="JavaScript">
window.parent.location.reload();
</script>
window.parent.location.reload();
这将刷新父页面而不关闭te弹出窗口,但不会发生任何事情。
有什么问题吗?您想要的不是.parent()
,而是窗口。opener
:
<script language="JavaScript">
window.opener.location.reload();
</script>
window.opener.location.reload();
我认为您应该有类似于window.opener.location.reload()的东西.parent()
用于(i)帧。恐怕不行。它会在页面关闭时刷新,但不会在重定向之前刷新。