<html>
<head>
<script language="javascript">
var blnCheckUnload = true;
window.onbeforeunload = function() {
if(blnCheckUnload) {
return("Are You Sure?");
}
}
</script>
<body>
</body>
</html>
重点是那个reuturn!
转自:http://blog.sina.com.cn/s/blog_4cb400450100iidu.html
感谢!