Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <img id="img1" src="pic_htmltree.gif"> <img id="img2" src="pic_navigate.gif"> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = "The id of the first image is " + document.images[0].id; </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_doc_images2 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:24:40 GMT --> </html>
Result:
Try it Yourself - © w3schools.com