How to download a bunch of pdf files linked from an html file?
<p>My friend's computer broke and the only thing he can use to view his geometry book is the accessible page: <a href="http://www.classzone.com/cz/books/geometry_2007_na/secured/resources/applications/ebook/accessibility/ml_geometry_na/toc.html" rel="nofollow">http://www.classzone.com/cz/books/geometry_2007_na/secured/resources/applications/ebook/accessibility/ml_geometry_na/toc.html</a> because he has an iPad that is incapable of viewing flash. </p>

<p>The link to the first page looks like: .....<a href="http://www.classzone.com/cz/books/geometry_2007_na/secured/resources/applications/ebook/accessibility/ml_geometry_na/page_1.pdf" rel="nofollow">http://www.classzone.com/cz/books/geometry_2007_na/secured/resources/applications/ebook/accessibility/ml_geometry_na/page_1.pdf</a></p>

<p>Page two: .....blahblah/page_2.pdf all the way up to page_1000.pdf</p>

<p>The problem is there is no "next page" button, so its a hassle to switch pages. Also, it takes an internet connection to do.</p>

<p>How can I download all of these pdf's to a folder so he can see read them on his iPad easier? I would also like to have this option, so I can view my math book offline. I know javascript, and was thinking of a for loop:</p>

<pre><code>for(var i=1; i&lt;=500; i++) {
 var link = "http://www.classzone.com/cz/books/geometry_2007_na/secured/resources/applications/ebook/accessibility/ml_geometry_na/page_" + i + ".pdf";
 // how can I download the pdf from variable link 
}
</code></pre>

<p>Thank you so much! If javascript can't do this, can any other programming language?</p>
