title: How can I download a list of files dynamically generated with javascript?
body: <p>I'm trying to create and loop through a list of links that point towards a dynamically generated XML file.</p>
  
  <p>Here is the code I'm using . . . I've changed the url:</p>
  
  <pre><code>    function scanSystem() {
      // Starting value for scans
          var xMin = '0';
          var yMin = '0';
      // Temporary - The highest coordinates that will be scanned
          var coordMax = '19';
  
          for (var x = xMin; x &lt;= coordMax; x++) {
              for (var y = yMin; y &lt;= coordMax; y++) {
                  var url = "http://www.xmlurl.com/members/scanners/list.php?cockpit&amp;xml&amp;x=" + x + "&amp;y="+ y;
                  var link = "&lt;a href='" + url + "'&gt;(" + x + "," + y + ")&lt;/a&gt;&lt;br&gt;";
                  $("#links_container").append(link);
                  document.getElementById('iframe').src = url;
              }
          }
      }
  </code></pre>
  
  <p>The links generate and fill the div (which is more of a debug function at the moment) but only the last link is actually downloaded through the iframe.</p>
  
  <p>Any ideas how to make it start the download of the other files as well?</p>