关闭窗口执行事件
window.onbeforeunload = function() {
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth-20;
if(b && window.event.clientY < 0 || window.event.altKey)
{
window.event.returnValue = "don 't close me ";
}
} 
posted on 2008-06-12 10:30 RedFox(低调) 阅读(180) 评论(0) 收藏 举报


浙公网安备 33010602011771号