1. $('a').bind({
  2. click: function(){
  3. window.location.hash = $(this).attr('url');
  4. });
  5. });