Finding the Scroll Position in IE10

I hate to label this a “device bug”, but since everyone else supports it, and someone doesn’t, I’ll label it as such…

It’s been so long since I had to deal with IE that I had forgotten about this, but IE does not support window.scrollX/window.scrollY; you have to use window.pageXOffset/window.pageYOffset

So this is an effective way to find the current vertical scroll position:
var top = (window.scrollY || window.pageYOffset);

One more teeny difference for the mobile web! :-)