SyntaxFix
Write A Post
Hire A Developer
Questions
var youtubeimgsrc = document.getElementById('youtubeimg').src; document.write(youtubeimgsrc);
Here's a fiddle for you http://jsfiddle.net/cruxst/dvrEN/