当前位置: 代码迷 >> JavaScript >> window.close()在FF中不能执行?解决方法
  详细解决方案

window.close()在FF中不能执行?解决方法

热度:599   发布时间:2012-03-16 16:34:56.0
window.close()在FF中不能执行?
window.close()在IE中正常,在FF中无反应,请问是FF不支持这语句吗?有什么解决办法吗?

------解决方案--------------------
This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level
------解决方案--------------------
FF中不允许脚本关闭非脚本打开的窗口。
------解决方案--------------------
FF不支持window.close
  相关解决方案