html change img src javascript code example
Example: javascript change image src
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";