浮層內嵌iframe及frame集合窗口,刷新父頁面的多種方法
<script language=JavaScript> parent.location.reload(); </script> <script language=JavaScript> parent.location.reload(); </script>
彈出子頁面
<script language=JavaScript> window.opener.location.reload(); </script> <script language=JavaScript> window.opener.location.reload(); </script>
子窗口刷新父窗口
<script language=JavaScript> self.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.opener.location.href=window.opener.location.href; </script>
刷新以winodw.showModelDialog()方法打開的窗口
Java代碼
<script language="javascript"> window.parent.dialogArguments.document.execCommand('Refresh'); </script>
以上這篇JS刷新父窗口的幾種方式小結(推薦)就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持。