I would like to know how to have my parent page reach into an iframe and set the innerhtml
(using jQuery .html()
) to a variable that I will supply.
Here is what I have so far:
var iframe = document.getElementById('framer');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var content_destination = innerDoc.getElementById('placecontenthere');
$(content_destination).html("<span class='red'>Hello</span>");
Any thoughts?