jQuery Address provides strong cross-browser support for browser history and Ajax crawling:
http://www.asual.com/jquery/address
http://github.com/asual/jquery-address
Greetings
UPDATE:
you can find a good sample right here:
some code in short:
$(function() {
$('a').click(function(e) {
e.preventDefault();
$.address.value($(this).attr('href'));
});
var changecount = 0;
$.address.change(function(e) {
if (typeof e !== 'function') {
$('span').html(changecount++);
}
});
});