js set src of img in Element type code example Example: set img src using javascript document.getElementById("imageid").src="../template/save.png";