Disable # Anchors?

Disable # Anchors?

I have some jQuery UI tabs, controlled by # anchors.

You click a tab and it opens instantly, but if you want to open 'tab 2' by default you would link to "domain.com/directory/#tab2"

The problem is, each tab has a list of data with pagination. A page link example would be "domain.com/directory/?page=3#tab2"

This will open page 3 on tab 2, but the page jumps down, when I'd like it to stay at the top of the page.

How would I go about doing this?


Thanks.