Skip to content

Instantly share code, notes, and snippets.

@fatihacet
Created August 29, 2012 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatihacet/3520131 to your computer and use it in GitHub Desktop.
Save fatihacet/3520131 to your computer and use it in GitHub Desktop.
Implementing history navigate in Google Closure Library
var history = new goog.History(false, '', document.getElementById('history_input'));
goog.events.listen(history, goog.history.EventType.NAVIGATE, function() {
console.log(history.getToken());
});
history.setEnabled(true);
<input type="text" id="history_input" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment