Here we are changing the src of an attribute of <img> element.
<img id="image1" src="apple.jpg" width="70" height="80"/>
<script>
document.getElementById('image1').src= "gauva.jpg";
</script>
.
In the above code we have image as
"apple.jpg" with id as image1 and we are changing the src of <img> element to
"gauva.jpg" ,