Sourabh Dhiman

Sourabh Dhiman

  • NA
  • 323
  • 53.4k

Code issue into jquery ?

Oct 22 2019 4:46 AM
window.onunload = function () {
if ((window.event.clientX < 0) || (window.event.clientY < 0)) // close button
{
var Data = $("#transactionID").val();
removeSoftbooking(Data);
alert("CLose browser");
}
else if (window.event.altKey == true) // ALT + F4
{
var Data = $("#transactionID").val();
removeSoftbooking(Data);
alert("Tab Close");
}
else // for all other unload events
{
var Data = $("#transactionID").val();
removeSoftbooking(Data);
}
Not Run Code Google chrome ,FF, Safari . 
Please please my help

Answers (1)