title: without php is it possible to get redirected website html source code using only own written js?
body: <p>I wanted to retrieve a webpage page source example "<a href="http://google.com" rel="nofollow noreferrer">http://google.com</a>" in order to extract out all the picture url inside. Note: not from own website. I hope the idea is clear to understand.</p>
  
  <p>Can this be achieved using only own js code without using jquery?
  If yes how? </p>
  
  <p>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>
  
  <pre><code>&lt;p id="demo"&gt;here is your downloadable picture link:  &lt;/p&gt;
  
  &lt;script&gt;
  function analyseURL() {
      var url1 = "http://google.com";
  
      var HtmlPageSource = get url1 inner sourcode
  
      var finalPic = filter HtmlPageSource here
  
      document.getElementById("demo").innerHTML = finalPic;
  }
  &lt;/script&gt;
  
  </code></pre>