Reputation: 3200
I have a popup window where my user can edit information displayed on the parent page. When someone press submit changes on the popup window i need the popup to close and also the parent page to reload to display the new information.
I know there are a lot of examples out there but the questions displayed here did not provide me with enough information to complete my task.
I am currently using onClick="history.go(0)" which take me back to the parent page but does not reload the page
Upvotes: 2
Views: 1758
Reputation: 10503
To close the pop up window from within the pop up window use this:
self.close();
To RELOAD the window that opened the pop up use this in the pop up window:
window.opener.href = 'URL';
This should be pretty close to what you need.
Upvotes: 1
Reputation: 2256
The question was a bit vague (not really a question at all, even), but you can try window.location.href="/parentpage";
Upvotes: 2