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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -