javascript get img src attribute 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;