html:
<ul id="box">
<li><img src="image/i1.png" alt=""></li>
<li><img src="image/i2.png" alt=""></li>
<li><img src="image/i3.png" alt=""></li>
</ul>
script:
var mybox = document.getElementsByTagName("li");
document.write(mybox[1].innerHTML);
output result:
image/i2.png this picture will be displayed on the web page, can I get this string?
<li><img src="image/i2.png" alt=""></li>