JavaScript bind to hashchange event

Bind a function to the hash change event.

function hashChange() {
    console.info('hash changed!');
}

window.addEventListener('hashchange', hashChange, false);
View this page on GitHub.
Posted .

Comments

Leave a Reply