In Javascript (jquery), is there a way to detect when the page anchor changes?
<p>Basically, I want to have links throughout the page that change the anchor -- the part of the URL after a # symbol. When that part of the URL changes, the JavaScript should respond.</p>

<p>I could add an onclick method to every link, but is there a better way?</p>
