Helpful Information
 
 
Category: XML
xhtml & scrollTop

Hi guys

I need to discern the equivalent of the IE "scrollTop" property for the page when scrolled to position something dynamically. It seems that the property is defunct when using xhtml. Any work arounds?

Thanks

Keith

instead of

document.body.scrollTop

use

document.documentElement.scrollTop

and it'll work

Many thanks brothercake










privacy (GDPR)