how to get scroll event in js code example Example: scroll js window.scroll(x-coord, y-coord) window.scroll(options)