document.documentElement.scrollTop return value differs in Chrome

I am trying to process some code based on the ‘document.documentElement.scrollTop‘ value. It returns ‘348‘ in FF and IE but in Chrome it returns ‘0‘. Do i need to do anything to overcome this issue?

FF:

>>> document.documentElement.scrollTop
342

Chrome:

document.documentElement.scrollTop
0

33 thoughts on “document.documentElement.scrollTop return value differs in Chrome”

Leave a Comment