javascript find img src code example
Example 1: javascript check image src
if (img.getAttribute('src') === 'on.png')
Example 2: js get image src
var youtubeimgsrc = document.getElementById("youtubeimg").src;
if (img.getAttribute('src') === 'on.png')
var youtubeimgsrc = document.getElementById("youtubeimg").src;