codea
<textarea id="atnbg20170214tu1059" style="height: 100px; width: 400px;"></textarea><div id="atnbg20170214tu1059test"><a href="javascript:atnbg20170214tu1059()" style="color: greenyellow; font-size: 1.5em;">
can I put the inner HTML of an element into a textarea?</a> <span style="color:goldenrod;font-size:15em">yes</span></div>
<div><a href="javascript:atnbg20170214tu1059secondtest()" style="color: greenyellow; font-size: 1.5em;">
ok, well, can I get the html from the text area, now, and put that somewhere?</a></div>
<div id="atnbg20170214tu1059sencondtestoutput"></div>
<script>
function atnbg20170214tu1059() {
var textarea = document.getElementById("atnbg20170214tu1059")
textarea.value = document.getElementById("atnbg20170214tu1059test").innerHTML}
function atnbg20170214tu1059secondtest() {
var textarea = document.getElementById("atnbg20170214tu1059")
document.getElementById("atnbg20170214tu1059sencondtestoutput").innerHTML = textarea.value}
</script>
acode