0
How to add any image
I want to know which location should i write website or any phone location
3 Answers
0
simply do that :
var img = new Image() ;
img.src = "path_to_image" ;
yourElment.appendChild(img) ;
0
a way is this
var x = document.createElement("IMG");
x.setAttribute("src", "img_.jpg");
document.body.appendChild=x;
- 1
be more explicit



