有时在页面关闭或刷新时,需要作一些提示信息,用以下方法可以实现:

window.onbeforeunload=function(){
return '确定离开当前页面吗?';
};



相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-06-19
  • 2021-07-19
  • 2022-02-22
  • 2021-08-05
猜你喜欢
  • 2021-11-13
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案