I have 2 angular application. i click open window button in 1st application my 2nd application (or external URL) will open in a new window.
Use this code:
window.open(this.iframeUrl,'',width=${popupWidth},height=${popupHeight},top=${top},left=${left},resizable=no,scrollbars=yes
);
Now my issue is if i close child window(2nd application) show custom popup of "Are you sure want go back to booking" if user click ok close child window or choose no stay on that page don't close child window.
Before any user interaction click close button also prevent and show custom popup