How to save image from html2canvas

I’m using html2canvas to convert the div into an image. To save the image I have to go right-click and save it. Is it possible to download the image without right-clicking?

I tried like :

<a href="<canvas style='width: 1903px; height: 886px;' width='1903' height='886'></canvas>">DOWNLOAD</a>

but it doesnt work.

<div id="output">
   <canvas style="width: 1903px; height: 886px;" width="1903" height="886"></canvas>
</div>

Any help is appreciated