[英]Simple command javascript (window.close())
如何使用window.close命令确保在Firefox中关闭窗口?
How assure the closing of the window in the firefox with window.close command?
如何使用window.close命令确保在Firefox中关闭窗口?
You can't. 你不能 If you try
window.close()
in a window you didn't open programmatically, the user will (fortunately!) be asked whether they really want to close the window. 如果您在未以编程方式打开的窗口中尝试
window.close()
,则将(幸运地!)询问用户是否确实要关闭该窗口。 There's no way around that. 没有办法解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.