It is best to use a cookie to store the name of the active tab. Then, when loading the page, check the cookie on JS and use it as the basis for displaying the correct tab and hiding others.
jQuery cookie cookie:
http://plugins.jquery.com/project/Cookie
( , ):
MARKUP
<ul id="tabs">
<li id="tab-a">First tab</li>
<li id="tab-b">Second tab</li>
<li id="tab-c">Third tab</li>
</ul>
JAVSCRIPT
if ($.cookie('activetab')) {
var activetabId = $.cookie('activetab');
$('#tabs li').removeClass('active');
$('#'+activetabId).addClass('active');
}
$('#tabs li')click(function(){
var id = $(this).attr('id');
$.cookie('activetab',id);
});