get window scroll position Get the scroll position from the top of the window. #javascript window.scrollY copy