Obstacle - WindowEventHandlers.onbeforeunload


Java Script: WindowEventHandlers.onbeforeunload


Working solution

 <script language="JavaScript">
  window.onbeforeunload = detectExitEvent;
  function detectExitEvent() {
    return "The system has detect that you leave the page.  Are you sure you want to exit this page?";
  }
</script>