Grab images from URL and display them
<p>I have a question about document object model in javascript.<br>
I'm attempting to build a program that grabs images from a url and outputs them, I have actually done this in php using the code below but my question is how would I perform the same function in javascript?  </p>

<pre><code>&lt;?php

    $url = 'http://lockerz.com/s/104049300';    

    $doc = new DOMDocument();    
    @$doc-&gt;loadHTMLFile($url);

    // Get all images
    $images_list = $doc-&gt;getElementsByTagName('img');

    foreach($images_list as $image) {      
      echo $image;
    }

?&gt;
</code></pre>
