Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript refresh page

Tags:

javascript

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?

like image 863
Elitmiar Avatar asked Oct 19 '09 15:10

Elitmiar


2 Answers

yes.

//reload opener...
window.opener.location.reload();
//close self...
window.close();
like image 152
scunliffe Avatar answered Sep 17 '22 23:09

scunliffe


<body onunload="opener.location.reload(true);">
like image 24
Trevor Avatar answered Sep 19 '22 23:09

Trevor