title: How to find out when window.location changes
body: <p>I have an ajax function that performs a filter and then changes the url.</p>
  
  <p>How would I do the equivalent of the following:</p>
  
  <pre><code>$(window.location).change(function() {
      alert('hello');
  })
  </code></pre>