I am trying to use jQuery to respond to changes in the url after the #. I've done some searching, but I don't think I'm using the right search terms.
To be clear, I want to be able to provide external links to a page like so:
<a href="example.com/foo/#home">home</a>
and to include internal links to change the content on the page dynamically:
<a href="#site-index">site index</a>
Gmail does this. For example, I can link you straight to your sent box: https://mail.google.com/mail/u/0/#sent
Thanks.