+ 2

how I put an image with javascript. Please?

25th Sep 2016, 8:13 AM
sagir
sagir - avatar
3 odpowiedzi
+ 6
If you want to put an image in html element like div. just select that div by its ID and put the img element in it by innerHTML property like this: document.getElementById("your html element id").innerHTML = "<img src='your image path'/>";
26th Sep 2016, 2:10 AM
Mohammed Chetehouna
+ 2
ok شکرا اخی
26th Sep 2016, 3:54 AM
sagir
sagir - avatar
+ 1
العفو
26th Sep 2016, 9:55 AM
Mohammed Chetehouna