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