What you need to do is add the hash name in document.location (I do not include the tab code itself, for readability)
Let's say your HTML tab is similar:
<a href="/page-to-fetch">Page</a>
Then your javascript will look like this:
$('a.tab').mouseover(function(){ document.location = document.location.hash = this.href;
That way, when you click on the tab, the URL will be changed to anything + '#sjjdsjsd' - so the URL will change. And your back button will also work.
Then you just need to add the code to load the page to check if the hash value is set, and load this content (if we go from another page or something like that)
$(document).ready(function(){ if (document.location.hash) { $('.tab-content-area').load(document.location.hash);
That should be all you need. But I do not know your tab code or if you use the tab plugin.
source share