FF下的window.close()

it2022-05-05  148

firefox通过javascript:window.close()只能关闭点击链接或新打开的窗口,不能关闭地址栏输入打开的窗口;如果只是自己测试用,可以在地址栏中输入about:config,找到dom.allow_scripts_to_close_windows项,将其修改为true,重启Firefox。

转载于:https://www.cnblogs.com/daxiami/archive/2010/08/26/1808747.html


最新回复(0)