title: Handle URL fragment identifier (anchor) change event in Javascript
body: <p>How can I write the Javascript callback code that will be executed on any changes in the URL fragment identifier (anchor)?</p>
  <p>For example from <code>http://example.com#a</code> to <code>http://example.com#b</code></p>