I wrote a code that take’s the image path from an XML file using Javascript, and store’s it in a Javascript variable :
var str2 = xmlDoc.getElementsByTagName("picture")[0].childNodes[0].nodeValue;
so now in my body section i need to create an image tag img src= ??????
I want the src to be the value of my javascript variable, how to do it?
You can do this: