I want to get the position of an element relative to the browser’s viewport (the viewport in which the page is displayed, not the whole page). How can this be done in JavaScript?
Many thanks
I want to get the position of an element relative to the browser’s viewport (the viewport in which the page is displayed, not the whole page). How can this be done in JavaScript?
Many thanks