Tabs behaviour when browser's back button is clicked

(1) you click a given tab
(2) you click some link in the tab pane
(3) link opens
(4) you click the browser back button to return to the original page
(5) you come back to see the default tab opened, instead of the tab last clicked.

Is there a way to have the tab widget remember which tab was last clicked?