Javascript scrollTop Method Return 0 From Chrome

I called javascript document.body.scrollTop from Chrome and returns as 0. However its working fine on Firefox when I scroll down or up

You can use the following codes and its working fine on both of Chrome and Firefox

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments