jQuery – hashchange event

You can detect if the browser supports the event by:

if ("onhashchange" in window) {
  //...
}

See also:

Leave a Comment