get iframe document
snippet in javascript

get iframe document

user1010

var iframe = document.getElementById("myFrame");
var elmnt = iframe.contentWindow.document //contentWindow is used to get the document of an iframe
alert(elmnt); //will output the innerHTML of the iframe