Skip to content

Instantly share code, notes, and snippets.

@JonAbrams
Created June 19, 2012 06:08
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 JonAbrams/2952547 to your computer and use it in GitHub Desktop.
Save JonAbrams/2952547 to your computer and use it in GitHub Desktop.
window.onpopstate = function (event) {
if (event.state == null) {
return;
}
old_text.val(event.state.old_text);
new_text.val(event.state.new_text);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment