package
hash change event handler thingy
npm install hashchangeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Registry package owners.
Fires user defined callbacks when the hash for the page changes, including when 'back' and 'forward' on browser history are used. This also works for IE6 and IE7.
No jQuery required.
Browserify
$ npm install --save hashchangeComponent
$ component install green-mesa/hashchangecallback )Adds a function to be called when the hash changes.
require('hashchange').update(function( hashFragment ) {
console.log('hash is now ' + hashFragment )
})Fires all hashchange callbacks immediately.
callback)Unbinds the callback so that it is no longer called.
Manually set the hash fragment to something
MIT
Estimated unpacked size across 3 packages.
8.5 kB
Includes dependencies.