Issues regarding scrollTop in JavaScript
<p>I want the Alert message <code>hello</code> to be displayed when the vertical scrolling on the page exceeds 100px. I tried doing but it didn't work.</p>

<p>JavaScript Code:</p>

<pre><code>function fixSearch(body) {
var a=body.scrollTop;
if(a&gt;100)
{
   alert("Hello");
}
}
</code></pre>

<p>HTML Code</p>

<pre><code>&lt;body onscroll="fixSearch(this)"&gt;
---------------------------
---------------------------
---------------------------
&lt;/body&gt;
</code></pre>
