I want to close Firefox tab from JavaScript. Please do not misunderstand me. I am not trying to close popup window but tab. I know JavaScript cannot close the window which it has not opened. Therefore I tried below code but it works in all browsers but not in Firefox.
window.open('','_self','');
Window.close();
If you have a single/few-user page and you have access to the Firefoxes you can change the about:config
settings.
dom.allow_scripts_to_close_windows = true
This might be a big security issue!
(Tested with Firefox 27 on Linux)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With