Windows.close()在FireFox中无法使用. [英] Windows.close() can not work in FireFox.
本文介绍了Windows.close()在FireFox中无法使用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
请给我解决方法,
window.close()在FirFox中不起作用.
我在dom变量true中设置了about:config,它可以正常工作.
但是我想要通过javascript/coding.
请帮助我.
Hello All,
Please give me solution,
window.close() is not working in FirFox.
I have set about:config in dom variable true ,its working fine.
But i want this through javascript/coding.
Please help me.
推荐答案
使用javaScript,您只能关闭以前打开的窗口,例如:
Using javaScript, you can only close windows that you previously opened, like:
var myWindow = window.open('http://www.google.com');
...
myWindow.close();
您无法关闭任意窗口.
You can not close arbitrary windows.
请参阅此参考资料
Window.close(); [ http://www.w3schools.com/jsref/met_win_close.asp [
see this reference
Window.close();[^]
http://www.w3schools.com/jsref/met_win_close.asp[^]
这篇关于Windows.close()在FireFox中无法使用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文