×
×
Correct!
Use HTML DOM to change the value of the image's src attribute.
<img id="image" src="smiley.gif">
<script>
document.getElementById("image")@(4) = "pic_mountain.jpg";
</script>
<img id="image" src="smiley.gif">
<script>
document.getElementById("image").src = "pic_mountain.jpg";
</script>
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 67 exercises.
Are you sure you want to continue?