Give your img tag an id, then you can
document.getElementById("imageid").src="https://stackoverflow.com/questions/11722400/template/save.png";
More Related Contents:
- How can I modify with css an image appended with javascript?
- How do I make two images fade in/out repeatedly? [closed]
- how to proportionally scale a div with images inside?
- Render HTML to an image
- Should setting an image src to data URL be available immediately?
- Browser/HTML Force download of image from src=”data:image/jpeg;base64…”
- How to load all the images from one of my folder into my web page, using Jquery/Javascript
- how to show alternate image if source image is not found? (onerror working in IE but not in mozilla) [duplicate]
- Javascript set img src
- How to silently hide “Image not found” icon when src source image is not found
- How to save a base64 image to user’s disk using JavaScript?
- How to display image with JavaScript?
- Detecting WebP support
- Can I get image from canvas element and use it in img src tag?
- How do image preloaders work?
- How do I abort image load requests without using window.stop()
- Make image fill div completely without stretching
- img onload doesn’t work well in IE7
- How to download a base64-encoded image?
- Change image source with JavaScript
- How to flip images horizontally with HTML5
- JavaScript loading progress of an image
- Change image in HTML page every few seconds
- JavaScript: Get image dimensions
- Javascript : get src and set as variable?
- createImageBitmap alternative on Safari
- How much data / information can we save / store in a QR code?
- How to bind img src to data in Vue
- canvas- Cropping images in different shapes
- Using base64-encoded images with HtmlService in Apps Script