I've built a tab navigation, but every time if i try to access a tab via its # url for example. http://www.goo.com/#gum it would then anchor to that div#gum on page load instead of at the top of the page. any way to prevent that?

1 answer


Use return false; in the click() function you associate with each tab.

Answered over 7 years ago by Divya Manian
  • It's on page load, not when you click. Caleb Wong over 7 years ago
  • That is the intention of the ui tab. Why would you need it to go to the top of the page via # url? Divya Manian over 7 years ago