when inside function main window.scroll is called code example Example: scroll js window.scroll(x-coord, y-coord) window.scroll(options)