$(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 ?
Any help me please ?

Puneet KankarRank #446 · 5.6K reputationPosted Oct 5, 2019, 11:57 PM EDT
Try given below code snippet
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Oct 3, 2019, 4:47 AM EDT
Sourabh DhimanRank #4,768 · 326 reputationPosted Oct 7, 2019, 9:10 PM EDT