I'm trying to close a tab on my site, I've tried using 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, but in Mozilla does not work, it only works if you run the command in the console in a new tab, but not in the tab of my site.
Does anyone have any tips?