title: Jquery .scroll() not working in IE with both $(window) and $(document). (issue with window.pageYOffset?)
body: <p>I have this code:</p>
  
  <pre><code>$(window).scroll(function() {
      var y_scroll_pos = window.pageYOffset;
      var scroll_pos_test = 200;   
  
      if(y_scroll_pos &gt; scroll_pos_test) {
  
         $('.extratext').slideDown('slow');
  
      }
  });
  </code></pre>
  
  <p>That works fine in FF, Chrome and IE 10 but not IE 9 or below. I have researched answers and they all say it should work with <code>$(window)</code> instead of the usual <code>$(document)</code>, which is what Ive got.</p>
  
  <p>Does anyone know another way of amending this?</p>
  
  <p>EDIT:</p>
  
  <p>Added <code>console.log(y_scroll_pos);</code> and it comes up with 'undefined'. Does IE not like <code>window.pageYOffset;</code>?</p>