how to access the id of the image tag in javascritp code example Example: js get image src var youtubeimgsrc = document.getElementById("youtubeimg").src;