title: alert message on browser close or tab close does not fire in server
body: <p>i want to throw alert message on page on browser or tab close and on using javascript in client side its working perfectly but while running from server it does not fire javascript event my code is</p>
  
  <pre><code>window.addEventListener("beforeunload", function (e) {
      alert("See You");
  }); 
  </code></pre>
  
  <p>is there any way to show message on tab close</p>