Hello! Immediately to the question: there are frames, each frame has its own elements. How can I get the coordinates of these elements relative to the whole page? I manage to get positions within the frames themselves, but I can't get positions with respect to the whole page.

  • What about getting the position of the desired frame and adding the values ​​you received for the element inside this frame? - Zoltan Toth
  • @ZoltanToth and how can I do this? If you find an element in the frame, it does not work out after it. - Reaget
  • your frame content or is there some page loaded from another site / domain? - Zoltan Toth
  • @ZoltanToth is loaded in a separate file. - Reaget

1 answer 1

you can write a function that will receive the position of the frame, relative to the document, and the position of the element in the frame, and return the sum of these values