Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

download image jquery onclick

$(".button_click").on("click", function () {
        var imagePath = "https://dummyimage.com/16:9x1080";
        var fileName = "Dummy_image.png";
        saveAs(imagePath, fileName); // This is a function please download the file from the link
        //Download file from this link  
        // https://raw.githubusercontent.com/eligrey/FileSaver.js/master/dist/FileSaver.js
    });
Source by raw.githubusercontent.com #
 
PREVIOUS NEXT
Tagged: #download #image #jquery #onclick
ADD COMMENT
Topic
Name
2+3 =