0
Is this correct??
window.onload = function() { var p = document.createElement("p"); var node = document.createTextNode("aur bc"); p.appendChild(node); document.getElementById("demo").appendchild("p"); }
1 Réponse
0
Two small errors
The last line should be
appendChild(p);
not
appendchild("p");