I\'m trying to determine how many pixels down I\'ve scrolled using window.scrollY. But this isn\'t supported in IE8. What is the safe, cross-browser alternative
window.scrollY
If you don't have to use it a lot, just do:
var scroll = window.scrollY //Modern Way (Chrome, Firefox) || document.documentElement.scrollTop (Old IE, 6,7,8)