set img source javascript on load code example Example: set img src using javascript document.getElementById("imageid").src="../template/save.png";