Hi,
With some javascript I openup a popup no prob using:
function myPopup2(x){
if (x==1)
{
myWindow = window.open( "timer.html", "", "height = 150, width = 300" );
}else
{
myWindow.close();
}
}
I then run some PHP script which refreshs reloads the page.
When I later then go to close the popup - it doesn't, because the page has been reloaded and myWindow variable gone. 'myWindow' is undefined is the javascript error.
Anyone know how I can get around this?
Thanks,