直接window.close() IE会弹出是否关闭选项卡的确认。
现在有
主页面A, 里面嵌入了一个IFrame   B, iframe  B 里面 使用window.open打开了页面C
 现在要在关闭C的时候把A也关掉。
我用这样的代码
function close() {
var pwindow = window.opener.parent; //获取A
pwindow.opener=null;
pwindow.close();window.opener=null;   // 这个可以直接关闭C 页面,不提示。
window.open("","_self");
window.close();
}关闭窗口不提示 是这么写的:
window.opener=null;   
window.open("","_self");
window.close();
然后我就想用同样的方法关闭父页面:pwindow.opener=null;
pwindow.close();
但是这样不行~~~只能不提示关闭C
关闭A的时候还是会弹出提示框。
该怎么弄???