Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

insert image using set atribute

var img = document.getElementById("example");
console.log(img.getAttribute("src")); // "images/foo.png"
console.log(img.src);                 // "http://example.com/path/images/foo.png"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #image #set #atribute
ADD COMMENT
Topic
Name
9+9 =