如何捕捉网页被关闭事件,并进行相应处理? <body onunload="javascript:alert('asdfds')"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 点击X来关闭当前网页<script language=javascript>function window.onbeforeunload(){if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){ window.event.returnValue="确定要退出本页吗?";}}</script> jquery IE下取值正常,FF下取不到 div中checkbox事件 js解析XML 怎样去掉文本框中的空格 菜鸟又来了...请教一个循环的写法... IE6支持层吗?如何才能使它支持层. 紧急求助!!!如何去掉窗口中的最大最小化按扭???在线等待! 怎样用JavaScript清除IE的历史记录(给分88)在线等 关于FileUpload?????? 怎样获取一个表单里聚焦的element的句柄? 这一小段代码为什么不对? 急!请问怎样用javascript模拟shift+TAB键
<script language=javascript>
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){
window.event.returnValue="确定要退出本页吗?";}
}
</script>