html5 snippets

How to use History.js or jQuery Address for HTML5 pushState navigation

Tagged history.js, jquery-address, pushstate, replacestate, html5  Languages javascript

Please don't use History.js. It's not maintained and has over 100 issues. Use jQuery Address and remember to read the documentation.

Example usage:

# muy importante
# mas importante
$.address.value(window.location.pathname +
# donde ocurre
$.address.change (event) ->

Another example:

  .path(window.location.pathname +
  .change (event) =>

jQuery address examples