IE 닫 기 단추 이벤트 포착

<html>
  <head>
    <title>  IE      </title>
    <SCRIPT language=javascript>
      window.onbeforeunload = function(){
        var n = window.event.screenX - window.screenLeft;
        var b = n > document.documentElement.scrollWidth-20;
        var number=0;
        if (b && window.event.clientY < 0 || window.event.altKey)
        {   
          if(number<15){
            window.event.returnValue = "       !    ?";  
          }
        }
     }
    </SCRIPT>
  <head>
  <body>
      nothing.....
  </body>
</html>

좋은 웹페이지 즐겨찾기