您现在的位置是:首页 > 电脑技术查询 > web开发

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

编辑:chaxungu时间:2022-10-02 23:22:48分类:web开发

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