I have a website which is 6 viewports height. I would like to get the Y position for no matter where i am in the page not only the viewport. I have tried :
It doesn't solve my problem.
Thanks
thanks Alexei Petrenko but it calculates an element position. But I fix my problem with "window.scrollY" that take the number of pixel from the top.