I have created a screen which has two controls on it. The first one is an iframe which shows a web-page within the main web page. That works fine. Underneath that is a textarea in which I would like to display the HTML that created the iframe page. Here is an abstract of my HTML: How do I make this work?
<iframe id='myiframe'></iframe>
<textarea id='mybuffer'></textarea>
and
var cow = document.getElementById('myiframe');
var pig = document.getElementById('mybuffer');
cow.src='http:google.com'; //this works
pig.value=cow.innerHTML; //this does not