Hello everyone . Please help me any another way how to close tab and browser close event.
$(window).bind('beforeunload', function () {
setTimeout(function () {
var ID = $('#transactionID').val();
console.log('Test =' + ID);
removeSoftbooking(ID);
}, 1);
});
Not run this code close browser and tab close .