This project has moved and is read-only. For the latest updates, please go here.
!Adding Hash Change Notification Callback / Event Handler

What is a Hash Change Notification Callback?

A Hash Change Notification Callback is a function or method that will be called when the "hashchange" event is fired when the "location.hash" value is changed.

jHash provides cross-browser support for handling the HTML5 "hashchange" event.

Attaching "hashchange" Event Handler

A "hashchange" event handler can be added by using the "jHash.change" method by passing in the callback function or method to use for the handler.

Example Usage:
// add cross-browser "hashchange" event a handler
jHash.change(function() {
    // called when "hashchange" event is fired
    // perform some action

Last edited May 4, 2012 at 2:59 PM by crpietschmann, version 3


No comments yet.