摘要: 方式一:(适用与IE浏览器,而且刷新不提示,只在点击浏览器关闭按钮的时候提示)<script type="text/javascript">window.onbeforeunload=onclose;function onclose(){if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey){return "您要离开吗?";}}</script>--------------------------------- 阅读全文
posted @ 2011-11-12 19:22 spring3 阅读(185) 评论(0) 推荐(0) 编辑