In the case of loading a pop-up window from a parent window, use the function –
window.opener.location
The window interface’s opener property returns a reference to the window that opened the window, either with open(), or by navigating a link with a target attribute.
We can even reload the parent window from the child popup window opened.