什么意思啊
<body onbeforeunload="return '您是这意思吗???'">

解决方案 »

  1.   

    不是,在页面A开着时候,你不能点IE的叉叉关闭IE,必须通过页面A上的连接连接到其他页面B时才能关闭IE,而A页面也可能访问服务器,所以不能用OnBeforeUnload()方法
      

  2.   

    没办法实现.
    我们完成可以用Alt+F4来关闭.
      

  3.   

    可以在onload事件中借助userData设置一个变量来存储窗口加载的那个页面,在onbeforeunload事件中来访问此变量The userData behavior persists data across sessions, using one UserData store for each object. The UserData store is persisted in the cache using the save and load methods. Once the UserData store has been saved, it can be reloaded even if Microsoft&reg; Internet Explorer has been closed and reopened.