Posts Tagged ‘window closed’

h1

Check child window is closed

April 27, 2011

We can check the child window is opened or not.
Coding

var ChildWin;
if(ChildWin && !ChildWin.closed)
{
ChildWin.focus();
}
else
{
ChildWin= window.open(‘url’)
}