I wanted to retrieve a webpage page source example "http://google.com" in order to extract out all the picture url inside. Note: not from own website. I hope the idea is clear to understand.
Can this be achieved using only own js code without using jquery? If yes how?
Note: Because I wanted it to be as lightweight as possible, I don't wish to use other site api or library. I hope this can be achived using own written js only.
<p id="demo">here is your downloadable picture link: </p>
<script>
function analyseURL() {
var url1 = "http://google.com";
var HtmlPageSource = get url1 inner sourcode
var finalPic = filter HtmlPageSource here
document.getElementById("demo").innerHTML = finalPic;
}
</script>