Programmatically change the src of an img tag

Give your img tag an id, then you can

document.getElementById("imageid").src="https://stackoverflow.com/questions/11722400/template/save.png";

Leave a Comment