Srinivas P

Srinivas P

  • NA
  • 40
  • 7.6k

Close current browser tab

May 22 2017 5:46 AM
I have "Exit" button in my page.When ever i clicked on that button,current browser tab should be closed.I wrote below code, this is working in IE browser only but it needs to work in Chrome and Firefox.
Please help me.

$("#btnExit").click(function (event) {
window.top.close();
});

Answers (1)