I have a html page with a button pop-up. If I click on this button a new window Pops-up, I do all of my changes in this window and then click the close button. The html page with the popup button should refresh after I closed the pop-up window. Is this possible?
+2
A:
yes.
//reload opener...
window.opener.location.reload();
//close self...
window.close();
scunliffe
2009-10-19 15:21:51
Only thing to note here is that this will refresh the opening window ANY time the body is unloaded (this includes refreshes).
Jeff
2009-10-19 15:51:18
A:
<script>function reload(){document.location = document.location}</script>
Carter Cole
2009-10-19 15:54:30
This script would reload "this" page, not the opener... or are you suggesting to inject this in the opener when closing the popup?
scunliffe
2009-10-19 16:22:30
sorry i wasn't paying attention didnt see he wanted to refresh opener...id use my function above on opener page and make the call from popup<body onunload="opener.reload();">just another way to do it... that would work right?
Carter Cole
2009-10-23 15:41:39