title: URL Change Event - JavaScript
body: <p>I have a <code>setTimeout</code> that records the URL in a variable called <code>newURL</code>.</p>
  <pre><code>function checkURL() {
      var newURL = window.location;
  } setInterval(checkURL, 1000);
  </code></pre>
  <p>What I would like to happen, is that a certain function must be executed, when the URL changes. Could someone help me here please?</p>