+ 1
When trying to add a image what code do you write in java script
4 Answers
+ 6
document.getElementsByTagName("img")[x].src="";
x is your img tag index in html page
+ 5
this set src to an existing img tag
so you need to create img tag in html before use it
0
thc
0
thx