Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

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.


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

3. From: Kevin Newman
Exposure
07/16/2007 18:30:45

Hey guys,

It's cool that you posted this here, but you have referenced an incorrect license. Please recheck what was in the original source code:

http://unfocus-history-keeper.googlecode.com/svn/trunk/javascript/History.js
http://creativecommons.org/licenses/LGPL/2.1/

That's the LGPL 2.1 and the new version will be LGPL 3 unless someone really needs a different license (no one has requested one yet).

http://www.gnu.org/licenses/lgpl.html

Please correct that license ref.

BTW, there's a new version at the above URL.

Thanks,

Kevin N.

4. From: Lee (Admin)
08/07/2007 15:31:06

My Fault, Kevin. Thanks for the heads up. BTW, I'll update the script also.

1. From: Abdul hamid
Error sending the code
06/09/2007 11:50:22

The sending email command is not working it is giving .
ERROR: Script history-keeper.html is missing at /www2/jss/cgi-bin/scriptbot2.cgi line 53.

2. From: Lee (Admin)
06/12/2007 15:16:02

Abdul,

It should be working now.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.