title: how to click close button in onbeforeunload pop up using javascript or angular
body: <p>In my application need to do the onbeforeunload pop up click close button pragmatically using java script or angular.. please help me it will help me lot..</p>
  
  <p>I have tried like this but its closed the tab without displaying leaving message.</p>
  
  <pre><code>window.onbeforeunload = function () {
    return; 
  }  
  </code></pre>