I am using the below to get its position away from the Top
var posTop = document.getElementById('elementId').getBoundingClientRect().top
- document.body.getBoundingClientRect().top
How is it possible to get its position if the element is inside an iframe and the iframe is not in the same domaine?