title: Error in JavaScript scrollTop working
body: <p>I want that when the vertical scrolling on the page exceeds 100px, Alert message <code>hello</code> should be displayed. I tried doing but it didn't work.</p>
  
  <p>JavaScript</p>
  
  <pre><code>function fixSearch(body) {
  var a=body.scrollTop;
  if(a&gt;100)
  {
      alert("Hello");
  }
  }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;body onscroll="fixSearch(this)"&gt;
  ---------------------------
  ---------------------------
  ---------------------------
  &lt;/body&gt;
  </code></pre>