title: How do I find out whether the browser window has a scrollbar visible, in JQuery?
body: <p>I was wondering if there is a way of finding out whether a browser window has a scrollbar visible, in JQuery?</p>
  
  <p>Here's the code I'm working with:</p>
  
  <pre><code>var hContent = $("body").height(); 
  var hWindow = $(window).height(); 
  
  if(hContent&gt;hWindow) {
      $('#scroll-top').fadeIn(250);    
  }
  else {
      $('#scroll-top').fadeOut(250);
  }
  </code></pre>
  
  <p>Any help is Greatly Appreciated, Thanks</p>