windows onscroll and jquery scroll compatibility code example Example: scroll js window.scroll(x-coord, y-coord) window.scroll(options)