<script language=javascript>  
  function window.onbeforeunload()  
  {  
      if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)  
      {  
          window.event.returnValue="确认退出?";  
      }  
  }  
  </script>