<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myImg").src = "hackanm.gif";
}
</script>
can you help me to correct the code.
I would like to change the button to a image.
I would like to use javascript to change html