JS小技巧
时间:2011-03-23 来源:haiq
- 无提示地直接关闭浏览器窗口
    - IE6下
 window.opener = null;//如果缺少此行,close 会导致IE弹出关闭提示;
 window.close();
- IE7下
 window.open('', '_self');//如果缺少此行,close 会导致IE弹出关闭提示;
 window.close();
- 框架内(IE6、IE7s)
 window.parent.opener = null;
 window.parent.open('', '_self');
 window.parent.close();
- 通用
 window.top.opener = null;
 window.top.open('', '_self');
 window.top.close();
 
- IE6下
 相关阅读 更多 + 
    
  









