title: Download html2canvas image to desktop
body: <p>I found this <a href="https://jsfiddle.net/8ypxW/3/" rel="noreferrer">https://jsfiddle.net/8ypxW/3/</a> and I would like to know how to download image to desktop. I only see save png but no download if it's possible can you give me the script? </p>
  
  <pre><code>     $(function() { 
       $("#btnSave").click(function() { 
         html2canvas($("#widget"), {
          onrendered: function(canvas) {
              theCanvas = canvas;
              document.body.appendChild(canvas);
  
              // Convert and download as image 
              Canvas2Image.saveAsPNG(canvas); 
              $("#img-out").append(canvas);
              // Clean up 
              //document.body.removeChild(canvas);
          }
        });
      });
  }); 
  </code></pre>