title: How to get an element's top position relative to the browser's viewport?
body: <p>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?</p>
  
  <p>Many thanks</p>