Created
August 29, 2012 23:11
-
-
Save fatihacet/3520131 to your computer and use it in GitHub Desktop.
Implementing history navigate in Google Closure Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" id="history_input" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment