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?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
In angular, we use:
If you're using jQuery, I used $(window).scrollTop() to get the Y position in IE 8. It seemed to work.