Javascript Update Page

I have a html page with a popup button. If I click on this button in a new Pops-up window, I will make all my changes in this window, and then click the close button. After I closed the popup, the html page with the popup button should refresh. Is it possible?

+5
source share
3 answers

Yes.

//reload opener...
window.opener.location.reload();
//close self...
window.close();
+10
source
<body onunload="opener.location.reload(true);">
+2
source
<script>function reload(){document.location = document.location}</script>
+1
source

All Articles