This may be impossible to do due to the nature of how browsers interpret hashs but I'm out of guesses...
For example:
Page1.html has a tab strip with options #One #Two #Three #Four
Page2.html has a tab strip with options #One #Two
Page3.html has no tabs.
All three pages have a menu (e.g. we've used milonic & open cube & started looking at jQuery) but the point is that the menu has links to the tabs (i.e. Page1.html#One, Page1.html#Two, Page1.html#Three, Page1.html#Four, Page2.html#One, Page2.html#Two).
When I'm on Page1 and click on a Page1 tab link in the menu, the tab wasn't selecting, so I added an onClick handler to perform the tabs("select") on the respective tab. This worked but made the page scroll. When on Page2 or Page3 and accessing a Page1 tab link, it jumps to Page1 and selects the correct tab but it also scrolls the page.
I know the default behavior of a browser is to interpret the hash on the URL and scroll to where that is, but in this case we just want the page to load and select the tab without moving to the hash (whether switching pages or selecting a tab on the current page via the menu). Is it possible to do?