Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript image to variable

document.body.appendChild(img1);
document.querySelector(".some-class").appendChild(img1);
document.getElementById("someId").appendChild(img1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #image #variable
ADD COMMENT
Topic
Name
3+3 =