Problem
How do I download multiple images with javascript?
For example, how do I do when I click a button in javascript it automatically accesses the url: link and download the image?
HTML
<button onclick="salvar_imagem()">Salvar Imagem</button>
JAVASCRIPT
<script>
function salvar_imagem(){
// ir em http://www.bing.com/az/hprichbg/rb/FrenchSunset_PT-BR10590691175_1366x768.jpg e baixar a imagem
}
</script>
I have no idea how this is done.
Note
If this is not possible in JavaScript
could someone give me a hint of how to do it in PHP
?