title: Is there a way to have an onload callback after changing window.location.href?
body: <p>Essentially what I'd like to do is something to the effect of this:</p>
  
  <pre><code>window.location.href = "some_location";
  window.onload = function() {
    alert("I'm the new location and I'm loaded!");
  };
  </code></pre>
  
  <p>Is there any way to have a callback when the window's new location is loaded? (The above code doesn't work.)</p>