Posted By

buscarini on 05/20/08


Tagged


Versions (?)

Añadir un hijo a un elemento de HTML (p.ej. un div)


 / Published in: JavaScript
 

  1. newnode=document.createElement("span");
  2. newnode.innerHTML="<div id=\"editMessageContainer\"> blah </div>";
  3. document.body.appendChild(newnode);

Report this snippet  

You need to login to post a comment.