Languages :: DHTML, JScript :: scrollTop always returning zero (0) !!! In Firefox with DOM standard ! |
|||
| By: Nono |
Date: 26/01/2008 22:18:10 |
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 | 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 |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








