I\'m using the tabs of jQuery UI: http://jqueryui.com/demos/tabs/
How to update the current url of the browser when the user click on a different ta
A combination of the other answers here worked for me.
$( "#tabs" ).tabs({ create: function(event, ui) { window.location.hash = ui.panel.attr('id'); }, activate: function(event, ui) { window.location.hash = ui.newPanel.attr('id'); } });