how to scroll down to an element in js code example Example: javascript scroll to element document.getElementById("divId").scrollIntoView();