Edit in JSFiddle

$('#my').jexcel({
    csv:'https://www.bossanova.uk/components/bossanova-ui/demo/demo1.csv',
    csvHeaders:true,
    colWidths: [70, 200, 300],
});

$('#download').on('click', function () {
	$('#my').jexcel('download');
})

              
<div id='my'></div>

<p><button id='download'>Export my spreadsheet as CSV</button></p>