History Keeper

By Kevin Newman on Jun 8, 2007

General

A JavaScript-based library for managing browser history (back button) and providing support for deep linking for Flash and Ajax applications.


Notes

Features include:

  • Hash based deep linking (Anchor style – index.html#foo=bar)
  • Event driven – Subscriber pattern
  • Support for all current browsers

Limitations:

  • All history entries (back button states) modify the location string.
  • Doesn’t remember last entry if you leave the app and come back in some browsers.
  • Editing the URL manually will stop further updates to the URL in some browsers.
  • Konqueror support is still a bit flaky.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: historyKeeper.js


Head

Paste this code into the HEAD section of your HTML document.