//禁止刷新提示
window.onbeforeunload = function() {
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth-20;
if(b && window.event.clientY < 0 || window.event.altKey){

}else{
location.href=location.href; //当前页面等于当前页面
}
}

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-06-18
猜你喜欢
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案