download canvas js

Solutions on MaxInterview for download canvas js by the best coders in the world

showing results for - "download canvas js"
Martina
06 Oct 2016
1function download() {
2var download = document.getElementById("download");
3var image = document.getElementById("myCanvas").toDataURL("image/png")
4    .replace("image/png", "image/octet-stream");
5download.setAttribute("href", image);
6//download.setAttribute("download","archive.png");
7}