<script type="text/javascript">
  window.onbeforeunload = function(){
      return "您确定要退出页面吗?";
  }
</script>


效果图
js实现用户关闭页面时提示是否离开此页面的方法

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2021-11-20
  • 2021-06-11
相关资源
相似解决方案