window.onbeforeunload=function(){ if(document.all){ if(event.clientY<0){ return "确定要离开吗?"; } }else{ return "确定要离开吗?"; } }
如果您觉得本文的内容对您的学习有所帮助: