Alex Rivera | Logout

jquery.history.js VS jquery-hashchange

Asked 2013-06-07T09:30:23.000
18

See http://balupton.github.io/jquery-history/demo/

I was attracted with jquery.history.js

mean while I found

http://benalman.com/code/projects/jquery-hashchange/examples/document_domain/

I think the second one is just based on JQuery. I mean it don't need any additional plugin than jQuery.

What is special in jquery.history.js? than hash change?.

Which should I use to override my browsers back and forward buttons ?

Edit
Report

1 Answer

2

You cannot override the browser's back and forward buttons, and this is by design within each browser for security reasons.

All these scripts do is change the browsers' document.location or document.hash, then track when the browser back or forward buttons are used and grab the current hash state of the browser.

Don't get me wrong, they are great scripts, but they will not allow you to override your back and forward buttons fully.

answered 2013-06-10T09:26:46.963

Your Answer