Answers for "crear etiquetas html con javascript"

0

crear etiquetas html con javascript

const div = document.createElement("div");
div.textContent = "Elemento 1";

const div2 = div.cloneNode();   // Ahora SÍ estamos clonando
div2.textContent = "Elemento 2";

div.textContent;  // 'Elemento 1'
Posted by: Guest on May-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language