📌  相关文章
📜  窗口关闭事件js - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:51.398000             🧑  作者: Mango

代码示例1
window.onbeforeunload = function(){
  alert("You are now leaving, are you sure?")
}