View Single Post
Old 12-12-2012, 11:45 AM   PM User | #2
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by snakehill View Post
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);
Logic Ali is offline   Reply With Quote