Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to insert image by javascript

var img = document.createElement("img");
img.src = "http://www.google.com/intl/en_com/images/logo_plain.png";
var src = document.getElementById("header");
src.appendChild(img);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #image #javascript
ADD COMMENT
Topic
Name
6+6 =