SyntaxFix
Write A Post
Hire A Developer
Questions
in this situation, you would grab the element by its id using getElementById and then just use .src
getElementById
.src
var youtubeimgsrc = document.getElementById("youtubeimg").src;