How can I refresh the parent window when clicking the close button of a child window?
The child window is a pop-up.
To refresh the parent page on close of child window use the following javascript in the popup page and call that using onunload in the popup page.
function refreshParent() { window.opener.location.reload(true); } <body onunload="javascript:refreshParent()">
1.4m articles
1.4m replys
5 comments
57.0k users