window scroll to view code example Example: javascript scroll to view var elmnt = document.getElementById("content"); elmnt.scrollIntoView();