Answers for "how to restrict page leave in javascript"

0

how to restrict page leave in javascript

window.onbeforeunload = function(){
   // Do something
}
Posted by: Guest on August-23-2021
0

how to restrict page leave in javascript

window.addEventListener("beforeunload", function(e){
   // Do something
}, false);
Posted by: Guest on August-23-2021

Code answers related to "how to restrict page leave in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language