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

Popular posts from this blog

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -