title: Image collection in DIV
body: <p>I want to get the images sources, but my code doesn't work.
  my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function imagiesFun(){
      var container = document.getElementById("imagiesCollectionExampleDiv");
      var collection = container.images;
      document.getElementById("imagiesResult").innerHTML = ;
      var result = "";
      var i;
      for(i = 0; i &lt; 3; i++){
          result = result + container[i].src + "&lt;br&gt;";
      }
      
      document.getElementById("imagiesResult").innerHTML = result;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="imagiesCollectionExampleDiv"&gt;
   &lt;img style="width: 20%" src="alfa.img"&gt;
   &lt;img style="width: 20%" src="beta.img"&gt;
   &lt;img style="width: 20%" src="gamma.img"&gt;
  &lt;/div&gt;
  &lt;button onclick="imagiesFun()"&gt;Show sources&lt;/button&gt;
  &lt;p id="imagiesResult"&gt;&lt;/p&gt;</code></pre>
  </div>
  </div>
  
   maybe someone tell me why, please </p>