title: Catching/Overriding a Javascript redirect
body: <p>How would I go about overriding/catching a javascript redirect?</p>
  
  <p>For example:</p>
  
  <pre><code>window.location.href="http://example.com";
  </code></pre>
  
  <p>The value "http://example.com" would be caught and maybe altered.</p>