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