I\'m trying to build a popup that can be closed from anywhere.
On the Mainpage you have the option to open it. At any point while browsing the mainpage the user shall be
There are three solutions I propose depending on what the problem actually is.
If you need to close the popup from page B when it was opened from page A the following code will allow you to obtain a reference to the popup from page B and close it. Reference: Find window previously opened by window.open
PageA.html
Open window...
Go to Page B