Home > Web Front-end > JS Tutorial > Summary of various methods of refreshing the parent page in javascript_javascript skills

Summary of various methods of refreshing the parent page in javascript_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:37:28
Original
49884 people have browsed it

Use iframe and pop up sub-page to refresh the parent page iframe

<script language=JavaScript> 
parent.location.reload(); 
</script>
Copy after login

Pop up sub-page

<script language=JavaScript> 
window.opener.location.reload(); 
</script>
Copy after login

The child window refreshes the parent window

<script language=JavaScript> 
self.opener.location.reload(); 
</script>
Copy after login

Refresh windows opened with the open() method

<script language=JavaScript> 
window.opener.location.href=window.opener.location.href; 
</script>
Copy after login

Refresh the window opened with winodw.showModelDialog() method

<script language="javascript"> 
window.parent.dialogArguments.document.execCommand('Refresh'); 
</script>
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template