摘要: 页面关闭时触 发事件 1 <script language="javascript"> 2 window.onbeforeunload = function() 3 { 4 if(!(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)) 5 { 6 //在刷新、或以_self方式转到其它页面、或用ALT+CTLR+DEL关闭时触发; 7 //代码 8 } 9 else10 {11 //点击... 阅读全文
posted @ 2012-04-06 14:45 天涯行客 阅读(712) 评论(0) 推荐(0) 编辑
天道酬勤--埋头静默--厚积薄发