Refresh parent window from child with multiple parent window using javascript -
i have tree window (first-> second -> third). want reload second closing third one. after closing third 1 first 1 getting refresh. had written following script.
window.onunload = refreshparent; self.close(); function refreshparent() { window.opener.location.reload(); }
apply script in third window's html file , see if works. also, make sure give unique name windows.
<script> window.onunload = closemeandrefreshopener; function closemeandrefreshopener() { window.opener.location.reload(); self.close(); } </script>
Comments
Post a Comment