I have done the following code in JavaScript to put focus on the particular element (branch1 is a element),
document.location.href=\"#branch1\";
I think you might be looking for an "anchor" given the example you have.
This link will jump to the anchor named jump
This is where the link will jump to
The focus jQuery method does something different from what you're trying to achieve.