0

How to add any image

I want to know which location should i write website or any phone location

20th Sep 2016, 2:12 PM
sandeep
3 Answers
0
simply do that : var img = new Image() ; img.src = "path_to_image" ; yourElment.appendChild(img) ;
20th Sep 2016, 10:57 PM
The Hardworker
The Hardworker - avatar
0
a way is this var x = document.createElement("IMG"); x.setAttribute("src", "img_.jpg"); document.body.appendChild=x;
26th Sep 2016, 4:35 AM
sagir
sagir - avatar
- 1
be more explicit
20th Sep 2016, 2:34 PM
Bienvenu Ange Niansou KOFFI (NiansDev)
Bienvenu Ange Niansou KOFFI (NiansDev) - avatar