window.onunload = function () {
debugger;
var ID = getCookie();
var NewValue = ID.replace("transactionID=", "");
//console.log("transactionID =" + NewValue);
removeSoftbooking(NewValue);
With debugger this code can be run.
But i want to this code run without debugger when close my browser.


Sourabh DhimanRank #4,768 · 326 reputationPosted Oct 18, 2019, 2:08 AM EDT