1
Answer

Close current browser tab

Srinivas P

Srinivas P

7y
357
1
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)