1
我尝试关闭父窗口上按钮的子弹出窗口。下面是它使用的功能。但它不能正常工作与IE浏览器,它与Firefox的罚款。有时儿童弹出窗口会在第一次关闭,但是当您重新打开弹出窗口并尝试关闭它时不会关闭。通常它根本不起作用。window.closed不适用于IE
如果我通过警报进行调试,那么“!fenetreOuverteConf.closed”为false。但是对于Firefox来说它是真实的。
function closePopup(){
var motherCOnf = (opener?opener:parent);
var fenetreOuverteCOnf = motherCOnf.window['childPopup'];
if(fenetreOuverteCOnf && !fenetreOuverteConf.closed)
{
fenetreOuverteCOnf.close();
}
}
抱歉,这是我的错..复制粘贴问题..这是我在我的代码中使用“if(fenetreOuverteConf &&!fenetreOuverteConf.closed)”。 – Rohit
它与Firefox正常工作..唯一的问题是IE浏览器..它有时工作在IE浏览器,有时它不工作.. – Rohit