Quote:
Originally Posted by snakehill
For some mysterious reason, IE does not seem to be able to get the pageYOffset and/or offsetTop values.
|
The fact that your demo shows it as
undefined should have hinted that it might be worth Googling the issue. Only IE9+ supports it.
Code:
Math.max(document.documentElement.scrollTop, document.body.scrollTop);