I Have a need to create a page that when I log in, pops a new window that fills the entire screen. Upon doing so, I would like the original “underpage” to automatically shut down so that when I exit the pop-up window, both windows no longer exist.
I have seen other sites do this. If I go to [url]www.wfan.com
You have a pop-up blocker enabled.
Click here to launch the player!
This code is located at:
[url]https://www.radiomat.com/register.php?action=register&station=WFANAM
When I click on the link, “Click here to launch the player!”, the new page containing the player opens and the original page disappears.
I have tried to duplicate the code. My version exist at:
[url]http://www.develop4u.com/temp/wfan_underpage.html
Note though that when I click on the link, “Click here to launch the player!”, An alert box opens prompting me to close the window…this is not what I want and I have no clue as to why it does prompt me.
Side note: I skip over the step of going to wfan.com and clicking “listen now” in order to get to the page: [url]https://www.radiomat.com/register.php?action=register&station=WFANAM
I must specifically go to wfan.com, click “listen now” and then “click here to launch the player” in order to execute the code. I don’t know why and I do not know how to duplicate the proper process.
Does anyone know how to make the under page automatically close upon triggering the op-up window without manually oking the process?
Any feedback and advice would be helpful.
Thank you.