JavaScript: scroll position (Webkit engine)
<p>I'm currently trying to use JavaScript to find out how far down the page the user has scrolled; for Firefox 8.0, the keyword is <em>pageYOffset</em>.</p>

<p>To say things mechanically:</p>

<ol>
<li><p>The <strong>page</strong> has a certain height. In Firefox, the useful object is <em>document.documentElement.scrollHeight</em>.</p></li>
<li><p>The <strong>browser's visible area</strong> also has a certain height. In Firefox, the object is <em>window.innerHeight</em>; in IE8, <em>document.documentElement.clientHeight</em>.</p></li>
<li><p>I need to know where the user is in the page vertically; in other words, <strong>how many pixels down the page</strong> the user has scrolled.</p></li>
</ol>

<p><strong>Does Webkit have a DOM object that refers to the current scroll position?</strong></p>

<p>Thank you.</p>
