Skip to content

Instantly share code, notes, and snippets.

@brandonrosage
Created May 14, 2012 16:34
Show Gist options
  • Save brandonrosage/2694957 to your computer and use it in GitHub Desktop.
Save brandonrosage/2694957 to your computer and use it in GitHub Desktop.
jQuery Mobile: Ensure clicks aren't recorded in history
$(document).bind("pagecreate", function() {
$("ul#tabs-menu li a").click(function () {
alert('The code fired!');
var url = $(this).attr('data-url');
$.mobile.changePage(url, {
transition: "none",
reverse: false,
changeHash: false
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment