We’ve developed some resources to help you work effectively from home during COVID-19 Click to learn more

Opening a popup window from a web panel - Window.opener is null


I'm opening a popup window from a web panel from a SuperOffice Windows Client using the following:

var popupWindow = window.open(.....)

From the popup window, before it closes, I try to call a function from the web panel web page using window.opener.myFunction()

The problem I am having, is that for some reason the window.opener is null?

In addition to this, the variable I assign to the popup window popupWindow is also null.

When I run this from a seperate browser window (i.e. not from the SuperOffice web panel) the window.opener is not null and neither is the varaible popupWindow - my code works. This is also the same from the web panel when using SuperOffice Web.

Please can you advise why this is happening and how I can resolve this?

Many Thanks


No replies yet!