function testload() { var p = document.getElementById('msg'); p.appendChild(document.createTextNode('hello world!')); } testload();