Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

download canvas js

function download() {
var download = document.getElementById("download");
var image = document.getElementById("myCanvas").toDataURL("image/png")
    .replace("image/png", "image/octet-stream");
download.setAttribute("href", image);
//download.setAttribute("download","archive.png");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #download #canvas #js
ADD COMMENT
Topic
Name
6+8 =