javascript change image src

JavaScript
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";document.getElementById("myImg").src = "hackanm.gif";document.getElementById("imageid").src="../template/save.png";
Source

Also in JavaScript: