visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: DHTML, JScript :: scrollTop always returning zero (0) !!! In Firefox with DOM standard !


By: Nono Great Britain  Date: 26/01/2008 22:18:10  English  Points: 20 Status: Answered
Quality : Excellent
Whenever I scroll down stupidly in a simple page (the scrollbar is the window's), and try to read scrollTop, I get zero ! Why ?

Given I use Firefox, and that I read this mozilla DOM documentation, I'm a bit disappointed...

What's wrong ?
By: VGR Date: 26/01/2008 22:22:47 English  Type : Answer
Yo Nono 8-)

This is one strange thing of that documentation. You don't have to use document.body.scrollTop ***but*** document.documentElement.scrollTop

Yes, I know, it's a bit weirdo.

regards

Do register to be able to answer

EContact
browser fav
page generated in 680.614950 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page