js get page source code example
Example 1: javascript get current url
var currentUrl = window.location.href;
Example 2: js get image src
var youtubeimgsrc = document.getElementById("youtubeimg").src;
var currentUrl = window.location.href;
var youtubeimgsrc = document.getElementById("youtubeimg").src;