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 JavaS
You can try:
node.offsetTop - window.scrollY
It works on Opera with viewport meta tag defined.