Popups are being blocked on browsers when the window is opened asynchronously. For example, needing to do some action on server before opening the window popup.
Since the window is not opened right after the user initiative, the window is being blocked.
- Opening the window with empty URL and give the window a name. window.open("", name, WindowProperties);
- Asynchronously do the round trip to the server and request for data calculation or some server actions.
- When returning to client, refreshing the opened window by calling window.open again with the relevant URL and the same window name. window.open(url, name, WindowProperties);