I want get the the position (screen coordinates) of all divs in an iframe using javascript. No jQuery.
I can get all the divs in an array like this:
var arr = window.frames[0].document.getElementsByTagName("div");
Then i tried to do:
var arr = window.frames[0].document.getElementsByTagName("div").x;
But it didn't work. Console logs undefined. Any ideas?