Download table as PNG using JQuery
<p>I want to download a html table as a PNG image, I found a way using JQuery to extract the table as an Image but it opens in a new tab and don't automatically download I must use right click then save as image to be able to download it.</p>

<p>is there any way to make it download automatically?</p>

<p>This is the JQuery used to export as PNG Image</p>

<pre><code>$('#preview-table').tableExport({type:'png',escape:'false'});
</code></pre>