Home >Web Front-end >JS Tutorial >Summary of various methods of refreshing the parent page in javascript_javascript skills
Use iframe and pop up sub-page to refresh the parent page iframe
<script language=JavaScript> parent.location.reload(); </script>
Pop up sub-page
<script language=JavaScript> window.opener.location.reload(); </script>
The child window refreshes the parent window
<script language=JavaScript> self.opener.location.reload(); </script>
Refresh windows opened with the open() method
<script language=JavaScript> window.opener.location.href=window.opener.location.href; </script>
Refresh the window opened with winodw.showModelDialog() method
<script language="javascript"> window.parent.dialogArguments.document.execCommand('Refresh'); </script>