Sourabh Dhiman

Sourabh Dhiman

  • 1.6k
  • 323
  • 16.6k

Redirect Another Page ?

Oct 1 2019 5:18 AM
$(window).on("beforeunload", function () {
debugger;
var tid = getCookie();
console.log("TestId =" + tid);
if (tid != "") {
setTimeout(function () {
window.location = "DeleteRec.aspx";
}, 3000);
}
else {
console.log("Not Run");
}
})
 
This is my code not redirct other page . What's problem this code. Any help me. 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)