Search code examples
javascriptdom-eventspopupwindow

Popup with parent window notification


I have a web app which opens a new popup window with JavaScript and after the user authenticate inside the popup window I want to close it (which I do with window.close()) and reload the window which opened the popup window. How could I do that?

JS-Popup-Code:

var w = window.open("url", "title", "width=990,height=500,resizable=yes");
w.focus();

Solution

  • opener.refresh()
    

    before you close your window.