$(window).on("beforeunload", function () {
debugger;
var id = getCookie();
console.log("TestID =" + id);
removeSoftbooking(id);
})
This code run successfully then reload browser . but not run this method close a browser and close a browser tab .
Any help me please ?