javascript cehck scroll going up or down code example Example: javascript scroll down window.scrollTo(300, 500); //X=300 and Y=500