I have a web document with scroll. I want to get the value, in pixels, of the current scroll position. When I run the below function it returns the value zero. How can I
Since it appears you are using jQuery, here is a jQuery solution.
$(function() { $('#Eframe').on("mousewheel", function() { alert($(document).scrollTop()); }); });
Not much to explain here. If you want, here is the jQuery documentation.