Sourabh Dhiman

Sourabh Dhiman

  • 1.6k
  • 226
  • 6.7k

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)