Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
download multiple files on new tabs using javascript

I am tasked to download the first 25 books from https://www.gutenberg.org/ but I need to download everything at once. Here's what I have so far.

for (var i = 0; i < 25; i++) {
        var link = "https://www.gutenberg.org/ebooks/"+i+".epub.images";
        window.open(link, "_blank");
};

// https://www.gutenberg.org/ebooks/150.epub.images --> sample link

The approach that I'm looking at is to open multiple new tabs and wait for each one to download the epub file. However, this only downloads the first book and doesn't continue to the next one.

I already researched on how to open multiple new tabs and on how to download multiple items at once but nothing works. I'm afraid they're already depreciated since those answers was 5+ years ago.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!