Tuesday 31 January 2012

History API

The History API is an API to give you control over the browser history.

The History API is an API to give you control over the browser history. In other words, you can add, delete, and change titles and URLs in the browser history field so that when your readers click the back button, they go to a URL that you have specified.

It is useful for photo gallery (when using Ajax to browse the image on the same page).  With the History API, you can change the URI to reflect the exact photo and the user can bookmarks the page and will return to the last photo they view.

If the browser doesn't support History API, this script history.js will help.

more info on how to use history API...

No comments:

Post a Comment