Hi,

I feel like an idiot, but I can't seem to figure out how to use this property. From my understanding the scrollTop property is supposed to return an integer representing how far the object has been scrolled from the top of the window?

Here is my code:

Code:
<html>
<body>
    
       fsdfsd
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />

<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
        <div style="height: 100px; width: 100px; overflow: scroll;" onclick="alert(this.scrollTop)">
            0123456789 0123456789 0123456789 0123456789 0123456789 0123456789
        </div>      
        <br />
        <br />
        <br />
        <br />    

</body>
</html>

yeah not the most compliant code, but I was just testing it...but anyways, no matter what happens the scrollTop property always returns 0. I don't understand why.

Any help would be appreciated.