Downloading pictures using urls and javascript: Is there a method that does it?

Hello!

I would like to write a javascript that downloads images(the urls will change) from web. So, considering i already have the urls, i put them in a array. I would like to know if is there any method that sends to browser a command to download from these urls. Something like:
window.download(‘url’);

I created this example to illustrate what i want to do.

Thank you!

Hi,

I would have thought that PHP was better suited to this task, as JavaScript only has limited access to the local file system.

Any server-side language (except maybe Classic ASP) is better suited for downloading files.