confimation close tab with jquery code example
Example 1: js ask before close
window.onbeforeunload = function() {
return "";
}
Example 2: close browser tab using jquery
window.top.close();
this will close the current tab for you.
window.onbeforeunload = function() {
return "";
}
window.top.close();
this will close the current tab for you.