javascript on window scroll code example Example: scroll window using js window.scroll(x-coord, y-coord) window.scroll(options)