Hello
When the user clicks the example link, the ph_example_win pops up. After that, when the user clicks the Continue button, the popup window should close and go to the next page.
My problem is, the popup window is appearing but it doesn't close when the user clicks Continue. Does anyone know what mistake I'm making?
ph_example_win is the popup window that appears when the example link is clicked.
document.getElementById('ph_no_example_link').onclick=
ph_example_win=window.open('phone_example.html','mywin','location=no width=200 height=160 left=200 top=200 screenX=200 screenY=200');
which.Continue.onclick=
function()
{if (ph_example_win.closed==false) ph_example_win.close();};
is not working. By the way, the above code is inside another javascript function.
However, The following works fine:
which.Continue.onclick = alert("Hello World");
Your help is much appreciated
thank you.