Edit This Code:
<!DOCTYPE html>
<html>
<body>
<script>
function changeImage() {
    document.getElementById('myimage').src = "compman.gif";
}
</script>

<img id="myimage" onclick="changeImage()"
src="compman_lowres.gif" width="107" height="98"
>


<p>Click the image to display a high resolution version.</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy