title: Solution for, "onpopstate" event which is not working in chrome, but working fine in IE and FireFox
body: <p>When a user press the browser back button I want to alert the user, for that to capture the browser back button event I am using onpopstate event as show below. But the problem is the event is working fine in IE and FireFox but it is not being triggered in chrome. Kindly help me with this, Thanks.</p>
  
  <pre><code>$(window).on('popstate', function () {
      this.alert("Do you really want to leave the page?");
  });
  </code></pre>
  
  <p>Using Chrome 75</p>