'onhashchange' in window:

foo bar baz

polling:
window.onhashchange:
hashchange event plugin: