JS przejdź do kotwicy

function scrollTo(hash) {
    location.hash = "#" + hash;
}
Annoyed Albatross