用iframe、彈出子頁面刷新父頁iframe
<script language=JavaScript> parent.location.reload(); </script>
彈出子頁
<script language=JavaScript> window.opener.location.reload(); </script>
子視窗刷新父視窗
<script language=JavaScript> self.opener.location.reload(); </script>
刷新以open()方法開啟的視窗
<script language=JavaScript> window.opener.location.href=window.opener.location.href; </script>
方法打開的視窗
<script language="javascript"> window.parent.dialogArguments.document.execCommand('Refresh'); </script>
以上是javascript如何刷新父視窗的詳細內容。更多資訊請關注PHP中文網其他相關文章!