-1

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();
Volker E.
  • 5,911
  • 11
  • 47
  • 64
Vijay Kumbhar
  • 896
  • 1
  • 13
  • 31
  • Does that really work in other browsers? You can't normally close windows you didn't open yourself. It's been that way since the late 1990s. – Álvaro González Nov 20 '13 at 12:48

1 Answers1

2

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

Community
  • 1
  • 1
Ashok
  • 1,251
  • 11
  • 19