title: Scroll Browser Window with jQuery
body: <p>I want to scroll the browser window in response to certain user actions.</p>
  
  <p>I found out about <a href="https://stackoverflow.com/questions/5061241/jquery-how-to-get-browser-window-to-scroll-horizontal-when-div-is-clicked"><code>scrollLeft</code> in a stackoverflow response</a>. From there, I was able to find <code>scrollTop</code> and ended up with the following:</p>
  
  <pre><code>$(window).scrollTop((Number($(window).scrollTop())+100)+'px');
  </code></pre>
  
  <p>This does in fact scroll, but to the top of the page. No matter what value I replace 100 with (I even tried negative numbers), it always just jumps to the top of the page. (Note: <code>$(window).scrollTop()</code> is returning 0.)</p>
  
  <p>Can someone give me some tips to what I might be missing?</p>