I have my canvas element and some div, which after clicking I wish open downloading the "canvas snapshot". Over now I have:
$("#save").live('click', function(e)
{
var image = canvas.toDataURL("image/png", true);
var imageElement = document.getElementById("myPics");
imageElement.src = image;
});
What displays the Image - so it is ok, but what I want is formula which will cause automatic download of this picture to users computer, after clicking #save div.