Dream Tech Blog

A person with no dream in life can never live a happy life.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

[html] onBeforeUnload Event

Posted on 2004-10-30 17:22  Dream  阅读(1530)  评论(0编辑  收藏  举报
今天看到Web MSN Messenger的时候看他的HTML才看到。
以前还真不知道有这个事件,平时也用不上!摘录如下:

<body class='contactlistbody' onbeforeunload="return ConfirmCloseWebMessenger();" onunload="return OnUnloadWebMessenger();" onresize="OnResizeContactWindow();" >

顺便宣传一下Web MSN Messenger :  http://webmessenger.msn.com
MSN Web Messenger lets you talk online and in real-time with friends and family using just a web browser! Use it on any shared computer - at school, at work, at a friend's house or anywhere you can't install the MSN Messenger software.