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();
Use {preventScroll: true} option on the focus method. https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
{preventScroll: true}
If using jQuery try $('#el')[0].focus({preventScroll: true}) or iterate over each in your collection
$('#el')[0].focus({preventScroll: true})