This is a follow-up of Does this not work because I can't use a script in a div?
Where I left off, I had this code:
Button script:
No idea why you are using eval... below is corrected.. outside of that not sure what you are trying to accomplish. Both value and innerHTML will pull from textareas, the question is what you want only text in the return or possible HTML values.
function run(){
document.getElementsByTagName("html")[0].innerHTML += document.getElementById("editorHead").innerHTML;
document.getElementById("result").innerHTML = document.getElementById("editorBody").innerHTML;
}