Posted By

devnull69 on 02/16/12


hack browser hash history back back-button

Versions (?)

Hash history hack

 / Published in: JavaScript

Include the following code into the global scope of your page. It will make sure that by navigating using the browser back/forward buttons you will see the correct dynamic content. It will also make the dynamic content bookmarkable.

You'll have to change getContent() according to what content you want to load depending on the "descr" paramter describing the content. descr will be the text that will be added to the URL as hash

Report this snippet  

You need to login to post a comment.