I am trying to download canvas as an image in a specific folder. I have succeeded to download the image however it keeps going to the default chrome directory (Downloads folder) and I would like to change this.
sample code:
<script>
function downloadImage() {
var link = document.createElement('a');
link.download = 'image.png';
link.href = document.getElementById('canvas').toDataURL();
link.click();
}
</script>
<canvas height="400" width="400" id="canvasshow"></canvas>
Any idea how can I do this, I've searched all over the internet. Thanks
I've searched on the internet and all over stackoverflow ...