Top "Scrolltop" questions

The scrollTop method.

Trigger $(window).scroll();

When I call $("body").animate({scrollTop: someValue}); I want $(window).scroll(function() { }); to be called too. How can I achieve …

javascript jquery triggers scrolltop
Can't get scrollTop() to work in both Chrome & Firefox

I am having trouble getting the scrollTop() method to work in both Firefox and Chrome. I used $('body, html').scrollTop(); …

javascript jquery google-chrome firefox scrolltop
Accounting for a fixed header with animate.scrolltop and (target).offset().top;

This should be a pretty basic question, but i've thrown most of my morning at it, and at this point …

jquery jquery-animate target offset scrolltop
Why is body.scrollTop deprecated?

It seems body.scrollTop (and body.scrollLeft) are deprecated in ES5 strict-mode. What is the reason for this, given that …

javascript scrolltop strict-mode
jQuery add and remove $(window).scroll(function()?

How can I remove and then add the $(window).scroll? I need to store a variable and reuse it after …

jquery window scrolltop
jQuery - ScrollTop without animation

How can I use the scrolltop without an animation This code works: var offTop = $('#box').offset().top; offTop = offTop-43; $(…

jquery animation scroll scrolltop
Append content to div and scroll/animate to bottom

I'm trying to make a div scroll to the bottom after adding new content (using append) Here is the main …

jquery scrolltop
set scrollTop and scrollLeft without javascript

I have a question about the scrollTop and scrollLeft properties. I would like to set these properties in my div …

javascript css scrolltop
How to get maximum document scrolltop value

I am making some plugin and I need to get maximum scrollTop value of the document. Maximum scrollTop value is 2001 , …

javascript jquery scrolltop
The same old issue, .scrollTop(0) not working in Chrome & Safari

First, let me point out, i've googled and even looked at answers on here like this and this, however, I'm …

jquery google-chrome safari scrolltop