Hi everybody,
i want to scroll to top of a specific region (static ID= telClt_sc) on same tab,
For that i did this piece of JS code:
Code 1:
/* Jump To Specific Region: id='telClt_sc' */
var element = document.getElementById("telClt\_sc");
element.scrollIntoView({block: "start", behavior: "smooth"});
Or , Code 2:
$("html, body").animate({ scrollTop: $("#telClt_sc").offset().top }, 1500);
When i run page to test it, the page is scrolled in the middle of region, not in the top of region
