title: Javascript detect browser scroll to the top?
body: <p>How do I modify the following code to detect scrolling to the top page instead. </p>
  
  <pre><code>window.onscroll = function(ev) {
      if ((window.innerHeight + window.scrollY) &gt;= document.body.offsetHeight) {
          alert(bottom);
      }
  };
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I am working on IE 10 for Windows Phone 8 BTW</p>