scroll() function scrolls to a specific set of coordinates within a given element. Broswer Compatibility: Chrome and Firefox window.scroll(0,findPos(document.getElementById("myDiv")));