<body>
<script>
window.onbeforeunload = function (e) {?
e = e || window.event;?
// For IE and Firefox prior to version 4?
if (e) {?
e.returnValue = '确定退出吗?';?
}?
?
// For Safari?
return '确定退出吗?';?
};?
</script>
</body>
日期:2014-05-16 浏览次数:20349 次
<body>
<script>
window.onbeforeunload = function (e) {?
e = e || window.event;?
// For IE and Firefox prior to version 4?
if (e) {?
e.returnValue = '确定退出吗?';?
}?
?
// For Safari?
return '确定退出吗?';?
};?
</script>
</body>