Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS new element

var x = document.createElement("tag");
x.style.color = "red";
document.body.appendChild(x);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #JS #element
ADD COMMENT
Topic
Name
7+4 =