All web pages has a vertical height but height of long pages could overflows out of page. For example, the web page has a lot of
<p> tags and some the tags owerfloved. I wonder how to get distance or space from the top of the page to
Notice here so some
<p> tag's maybe overflowed downside, should not be a problem in this case.
Another detail is maybe page is overflow to up upside. Should not be zero or minus value of the distance. So value of distances never change when page is scrolled or overflowed.
How to get the distances? (My script returning
getBoundingClientRect() object, I want to get the distance of object)
webpage is scrolled;