title: Exit Intent popup on Window close
body: <p>I am aware that this question has been asked a million times but it seems this technology is not possible at the moment as it was in the past. Now that I research on this topic, all the exit intent popup only work when the user moves his pointer away from the document but not when the user closes the window or directs to another page. </p>
  
  <p>In JavaScript, you could achieve the same using the onbeforeunload event but now it isn't possible to override the default message that popups and use your own modal or alert message in place of it. </p>
  
  <p>Is there any alternate way of it? If not in JavaScript, in another technology maybe? Or is it something that is no longer followed anymore?   </p>