get src image javascript code example
Example 1: how to change image source using javascript
document.getElementById("myImg").src = "hackanm.gif";
Example 2: js get image src
var youtubeimgsrc = document.getElementById("youtubeimg").src;
document.getElementById("myImg").src = "hackanm.gif";
var youtubeimgsrc = document.getElementById("youtubeimg").src;