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