0

I need to get an URL param when a popUp is closed.

For now I`ve tried this:

var win, checkConnect;    
win = window.open('some url', 'popup', 'width=900, height=600, top='+top+', left='+left);
      checkConnect = setInterval(function() {
        if (!win || !win.closed){
          console.log('Still Open');
          console.log(win.location.href);
        } else{
          console.log('Closed');
          console.log(win.location.href);
        }
        clearInterval(checkConnect);
      }, 1000);
    }

But I couldn´t get any data.

Any idea how to deal with this?

Thank you so much.

Arm144
  • 721
  • 1
  • 10
  • 23
  • Possible duplicate of [Popup window to return data to parent on close](https://stackoverflow.com/questions/9276086/popup-window-to-return-data-to-parent-on-close) – Asons Jun 20 '18 at 08:58
  • @LGSon nope it isn't work here. – Arm144 Jun 20 '18 at 09:13

0 Answers0