title: How to run code after changing the URL via window.location?
body: <p>I'm doing this but it doesn't work:</p>
  
  <pre><code>window.addEventListener("load", function load(event){
      alert('hola');
  },false);
  
  window.location.assign("about:blank");
  </code></pre>
  
  <p>It's a Greasemonkey script. The new location is loaded but the alert is never shown.</p>