how to scroll into a element using javascript code example Example: javascript scroll to element document.getElementById("divId").scrollIntoView();