7
I am trying to close a tab of my site, I have tried to use the following commands:
window.open('','_self',''); window.close();
window.close()
self.close()
var win = window.open("","_self"); win.close();
window.parent.close();
window.top.close()
top.open('','_self',''); top.close();
Many of these work right in Chrome and IE, only Mozilla doesn’t work, it only works if you run the console command in a new tab, but not in my website tab.
Does anyone have any tips?
Since version 27 of Firefox, security with tab closing has increased, so even the hacks used in <27 versions have stopped working.
– Filipe.Fonseca
too bad, I really needed to close that tab. Thank you for the answer
– SilvioYousseff