브라우저 창닫기 이벤트 발생 스크립트

– 브라우저 창닫으면 onbeforeunload로 이벤트를 Catch하여 BTN_CLOSE 버튼 이벤트를 발생시켜 줌.

<%– 팝업창 닫기 액션 : 닫기버튼 이벤트 발생–%>

        function fn_onClose(){

          document.getElementById(“BTN_CLOSE”).click();

        }

<script language=”javascript”>

        window.onbeforeunload = fn_onClose;

      </script>

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments