change html source with javascript code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: set img src using javascript
document.getElementById("imageid").src="../template/save.png";
document.getElementById("p1").innerHTML = "New text!";
document.getElementById("imageid").src="../template/save.png";