摘要: window.onbeforeunload = function(){ if(document.all){ //ie //右上角关闭按钮 或 alt+F4 或 ctrl+w if(event.clientX > document.body.clientWidth || event.clientY < 0 ||event.altKey || event.ctrlKey){ return "关闭窗口"; }else{ return "刷新或跳转"; } }else{ ret... 阅读全文
posted @ 2014-01-07 13:29 郎涛 阅读(1519) 评论(0) 推荐(0) 编辑