September 26, 2011

Manage Browser History in javascript using YUI utility

Manage Browser History in javascript using YUI utility
Using YUI utility one can manage browser history. It is supported in maximum browsers except Opera.

According to YUI, it states that we can register new entries or we can say custom entries into browser history, for that user have to first register (YAHOO.util.History.register method) with browser history using YUI then can add dynamic entries into the history.

The Browser History Manager only provides a way of storing/retrieving the history of states visited by an application. It is up to the implementer to name and handle each state appropriately. 

Through this way, we can decide which page should be come when we click on back browser button.
Please refer the following link to use the same.

No comments:

Post a Comment