do something on browser close tab or close jquery code example
Example 1: onclick cloSe tab in jquery
To close current tab
window.top.close();
Example 2: close browser tab using jquery
window.top.close();
this will close the current tab for you.