I try to close child popup from a button on parent window. Below is the function used for it.But it doesn't work fine with IE, it works fine with firefox. Sometimes child popup gets closed on first time but when you reopen the popup and try to close it doesn't close. And generally it doesn't work at all.
If i debug by alerts then "!fenetreOuverteConf.closed" is false. But it's value is true with firefox.
function closePopup(){
var motherCOnf = (opener?opener:parent);
var fenetreOuverteCOnf = motherCOnf.window['childPopup'];
if(fenetreOuverteCOnf && !fenetreOuverteConf.closed)
{
fenetreOuverteCOnf.close();
}
}