how to edit the source of an image in javascript code example Example: set img src using javascript document.getElementById("imageid").src="../template/save.png";