This time I will show you how to refresh the parent page with JS, and what are the precautions for refreshing the parent page with JS. The following is a practical case, let's take a look.
Use iframe, pop up sub-page to refresh the parent page iframe<script language=JavaScript> parent.location.reload(); </script>
<script language=JavaScript> window.opener.location.reload(); </script>
<script language=JavaScript> self.opener.location.reload(); </script>
<script language=JavaScript> window.opener.location.href=window.opener.location.href; </script>
ModelDialog() method
<script language="javascript"> window.parent.dialogArguments.document.execCommand('Refresh'); </script>
Other related articles for exciting content!
Recommended reading:The API that jQuery must master
aja’s asynchronous upload plug-in
The above is the detailed content of How to refresh the parent page in JS. For more information, please follow other related articles on the PHP Chinese website!