-1

Upon click of my button I'm trying to set the page to scroll to 1000px down.

I've tried:

 $(window).scrollTop(1000);

And

 $(document).scrollTop(1000);

And

 $('body').scrollTop(1000);

Jquery is in my page so that is not the issue. Any ideas?

panthro
  • 22,779
  • 66
  • 183
  • 324

1 Answers1

-1

Try this

$('body,html').scrollTop(1000);

I guess it's because you're testing in Firefox, which gets the scrollTop from the html element and not the body's.

AndyD
  • 875
  • 7
  • 18