79
rated 0 times
[
86]
[
7]
/ answers: 1 / hits: 38066
/ 11 Years ago, sun, november 3, 2013, 12:00:00
On my website I have a jQuery script that, if the download button is clicked it will open the image that you want in new window.
My question is, how can I make this script when you click the button the image will save automatically and not open in a new window.
My code :
<script type=text/javascript>
$(document).ready(function (){
$('#download-btn').click(function(){
var size = $('#size').val();
window.open(size);
});
})
</script>
More From » jquery