Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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'
Source by lenguajejs.com #
 
PREVIOUS NEXT
Tagged: #crear #etiquetas #html #javascript
ADD COMMENT
Topic
Name
4+5 =