Q: I have an iframe X call page, on page X there is a div w / id=test. The value of this test div is "bubbles". On the parent page, I need to read the div value and save it as javascript var.
Result: there is an output on the parent page document.write(iframedivvalue);that will be = regardless of the value of the div inside the iframe.
Note:
- page X is currently on a different domain.
- I am NOT trying to set anything inside an iframe, just read the divs value.
source
share