How can I focus to a HTML element (ex. \"a\") and do not change the current scroll settings.
For ex. if I use:
$(\'#link\').focus();
<
The reason why this is so hard for you is because you aren't supposed to do it. The browsers are designed to help the user avoid websites that do stuff like this, because a link the has focus will activate by hitting return or space on the keyboard, and users rarely wish to follow a link they are not aware is there.
Try to work with the browser instead of against it, and you will usually end up with happier users.