can't access iframe div by id code example
Example 1: iframe getelementbyid
document.getElementById('myframe1').contentWindow.document.getElementById('x')
Example 2: javascript search on docuemt for text on iframe
var myIFrame = document.getElementById("myIframe");
var content = myIFrame.contentWindow.document.body.innerHTML;