HTML - Don't let the User leave the page?

后端 未结 0 351
迷失自我
迷失自我 2020-12-23 18:13
window.onbeforeunload = function() {
   return "Dont leave me";
   return;
}; 

So thats my HTML-Code(JavaScript) so far and its working. N

相关标签:
回答
  • 消灭零回复
提交回复
热议问题