Firefox使用close()方法关闭当前窗口

实用技巧评论369阅读模式

在Firefox中使用close()方法无法关闭窗前窗口

控制台会输出 “脚本不得关闭非脚本打开的窗口。”

解决办法:在浏览器地址栏中输入:

about:config

在配置列表中找到:dom.allow_scripts_to_close_windows

右键点击切换,false变为true。

匿名

回复问题

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

拖动滑块以完成验证