>return typeof loWindow.pageYOffset != 'undefined' ? loWindow.pageYOffset: document.documentElement.scrollTop? > document.documentElement.scrollTop: document.body.scrollTop? document.body.scrollTop:0 >take advantage of JavaScript automatic coercion !
return loWindow.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;