html5 download attribute won't work in chrome -
i have javascript code construct download link:
<a download="report.csv" href="data:application/csv;charset=utf-8,(data appended here)"></a>
when click it, download file 'download' instead of 'report.csv'. doubt if that's because browser doesn't support html5 since download attribute html5 feature. test browser (chrome) shows support html5. 1 know why won't work? thanks.
if remember correctly, charset
attribute not supported anymore in html5.
you can try append data converted base64
Comments
Post a Comment