how to use window.onscroll px in javascript code example Example: scroll js window.scroll(x-coord, y-coord) window.scroll(options)