Sourabh Dhiman

Sourabh Dhiman

  • NA
  • 323
  • 58.8k

Delete Data Into Database ?

Oct 17 2019 5:45 AM
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. 

Answers (2)