how to change the source of an image using javascript only code example
Example: how to change image source using javascript
document.getElementById("myImg").src = "hackanm.gif";
document.getElementById("myImg").src = "hackanm.gif";