Advertisement
salmancreation

jQuery Mobile: Ensure clicks aren't recorded in history

Mar 8th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery Mobile: Ensure clicks aren't recorded in history
  2.  
  3.  
  4. $(document).bind("pagecreate", function() {
  5.     $("ul#tabs-menu li a").click(function () {
  6.         alert('The code fired!');
  7.         var url = $(this).attr('data-url');
  8.         $.mobile.changePage(url, {
  9.             transition: "none",
  10.             reverse: false,
  11.             changeHash: false
  12.         });
  13.     });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement