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


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:‘url’);

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

Thank you!


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.