Menu
I am trying to close a child window from javascript but it is not working.
var childWnd;
function openwin(theURL,winName,features)
{
childWnd=window.open(theURL,winName,features);
childWnd.moveTo(400,220);
}
function closeWindow(){
if (childWnd && childWnd.open && !childWnd.closed){
alert(‘closed’);
childWnd.close();
}
else
alert(‘not opened’);
}