Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTML 5 History - Ryan Mulligan

Las Vegas Ruby Group
January 01, 2012
22

HTML 5 History - Ryan Mulligan

Las Vegas Ruby Group

January 01, 2012
Tweet

Transcript

  1. Add to history stack window.history.pushState(data, title [, url ] )

    example: window.history.pushState("hello world"," Ryan's Presentation","/ryans-presentation");
  2. Modify the top of the stack window.history.replaceState(data, title [, url

    ] ) example: window.history.replaceState("hello world"," Ryan's Presentation","/ryans-presentation2");