我如何找到window.onbeforeunload上正在运行的事件?

时间:2013-03-25 17:08:26

标签: javascript onbeforeunload

我如何找到window.onbeforeunload上正在运行的事件?例如刷新,返回,浏览器关闭等

<script language="JavaScript" type="text/javascript">
  window.onbeforeunload = confirmExit;
  function confirmExit()
  {
    alert('here i need to show which event is working')
    return "";
  }
</script>

0 个答案:

没有答案