My scenario is something like this. Technology used for UI side is SmartGwt.
In my application, Onclick
of a button, opens a popup window, then pop up window is loaded with html contents from cross-domain url.
I do not have popup window reference inside the html code present in pop window.
I have got close button inside the html of popup window. Onclick
of a close button, window should get closed.
Currently its not happening. I tried with window.close()
methods and also with window.postmessage implementation. Nothing got worked.
How do I close the popup window when window is not opened by the script?
Any ideas?