<div id='foo'>foo</div>
var foo= document.getElementById('foo')
foo.innerHTML='haha'
foo.textContent='haha'
foo.innerText='haha'
var text=document.createTextNode('text')
var t1=text.nodeValue
var t2=text.data
<div id='foo'>foo</div>
var foo= document.getElementById('foo')
foo.innerHTML='haha'
foo.textContent='haha'
foo.innerText='haha'
var text=document.createTextNode('text')
var t1=text.nodeValue
var t2=text.data