Im attempting to link to a page with a specific bootstrap nav-tabs open, I can achieve this simply by adding the tab id into a #link, eg:
www.mysite.com/apagewithtabs#tab2
This is great except for the page scrolls down to the where #tab2 appears, i'd like the user to be at the top of the page when it loads.
Ive tried many different variations of this following js/jquery but absolutely nothing is working for me.
$(document).ready(function () {
window.setTimeout(function () {
$('html,body').scrollTop(0);
}, 2000);
});
If anyone has any ideas how I might be able to achieve this id really appreciate it!
Many thanks in advance!