Q:

On an internal link, e.g. to #id is there an event fired that I can attach a handler to?

I have a webpage which has various "internal" links on it to various objects with various ids.
The webpage also has an attachment to the scroll event to hide / display certain items when scrolled by a certain amount.  
I'd like to trigger the scroll event handler when the page navigates to another section after clicking on one of these links.  
The click event is fired before navigation so I can't attach to that, as it needs to make decisions based on the new location.

A:

How about the hashchange event? It's widely supported these days. (Modernizr has a test and lot's of polyfills, just in case...)
BTW, if you want to save the locations check out the HTML5 History API. history.pushState should do the trick. 

