Q: I have an iframe calling page X, on page X is a div w/ id=test. The value of this test div is \"bubbles\". On the parent page I need to read the value of the div
id=test
Assuming the iFrame has an assigned ID:
var iframe_div = document.getElementById('iframeid').document.getElementById('mydiv'); var content = iframe_div.innerHTML;
I believe should work.