We are using window.close()
to close the current browser tab. It works for IE, Chrome, Safari, but not for FF.
We tried lot of solutions provided on Internet, but it seems they are not working.
window.open('','_parent','');
window.close();
We are using window.close()
to close the current browser tab. It works for IE, Chrome, Safari, but not for FF.
We tried lot of solutions provided on Internet, but it seems they are not working.
window.open('','_parent','');
window.close();
Actually due to security reason and user experience aspects you can now can't cause the browser to be closed[Completely], only popup windows can be closed or the one parent to a script.
check the following mozilla support forum
possible duplicate of SO Question