I have a mostly blank HTML page, that links to an iframe. The iframe page contains some text and 2 buttons tied to onclick scripts. I want to click the buttons, but I’m not able to get the values of getboundingclientrect when I supply the ID. How can I get the value of getboundingclientrect for an element (button) inside the iframe page in IE9?
Thanks for looking.
EDIT: made question more specific
Like this, if it is the same domain. If it is a different domain, it won’t work.
A different domain would be:
It has to do with the same origin policy