Menu
×
×
Correct!
Exercise:Use HTML DOM to change the value of the image's src attribute.
<img id="image" src="smiley.gif">
<script>
document.getElementById("image").src = "pic_mountain.jpg";
</script>
Not CorrectClick here to try again. Correct!Next ❯<img id="image" src="smiley.gif"> <script> document.getElementById("image")= "pic_mountain.jpg"; </script> |