You can display the content of your iFrame inside your TextArea
like so
document.getElementById('YourTextArea').innerHTML = frameContent;
or using the Value
attribute:
document.getElementById('YourTextArea').value = frameContent;
I have done a quick demo for you using the first method.
This returns a string with any html tag in it. So for example if your iframe contains a list, the method returns an html list.
Here's the code:
<body>
<div id="frameId">
<ul>
<li id="item1">Coffee</li>
<li id="item2">Tea</li>
</ul>
</div>
<p>Click the button get the HTML content of the iframe.</p>
<textarea id="demo"></textarea><br/>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var frameContent = document.getElementById("frameId").innerHTML;
document.getElementById("demo").innerHTML = frameContent;
}
</script>
</body>