title: pagehide event on Google Chrome
body: <p>I am desperately trying to make this work on Chrome (fine on Firefox)</p>
  
  <pre><code>window.addEventListener(
    "pagehide",
    function() {
      console.log("pagehide");
    },
    { capture: true }
  );
  </code></pre>
  
  <p>now this triggers on page reload, but there is no way it works when pressing forward or back button leads to another website.</p>
  
  <p>PS I have found a bunch of issues here <a href="https://bugs.chromium.org/p/chromium/issues/list?sort=-modified&amp;colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified&amp;q=pagehide&amp;can=2" rel="nofollow noreferrer">bugs.chromium.org</a> but I am not sure if and which of them may apply.</p>