捕获关闭窗口

[ 2008-12-26 13:07:20 | Author: zhenhua ]
Font Size: Large | Medium | Small
<html>
<body>
<script>
function LeaveWin(){
event.returnValue="call,确定要关闭吗";
}
window.onbeforeunload=LeaveWin;
</script>
</body>
</html>

Comments Feed Comments Feed: http://www.zhenhua.org/feed.asp?q=comment&id=640
UTF-8 Encoding Trackback URL: http://www.zhenhua.org/trackback.asp?id=640

There is no comment on this article.

If you feel this site you find this information helpful, please click on the donation, which is voluntary,Thank you.
Post Comment
Smilies
[arrow] [biggrin] [confused] [cool]
[cry] [eek] [evil] [exclaim]
[frown] [idea] [lol] [mad]
[mrgreen] [neutral] [question] [razz]
[redface] [rolleyes] [sad] [smile]
[surprised] [twisted] [wink]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code