I want to implement a client-side downloadable file using javascript, and use the UATA URI to dynamically create the client-side file using the following method:
<a href="data:application/csv;charset=utf-8,Col1%2CCol2%2CCol3%0AVal1%2CVal2%2CVal3%0AVal11%2CVal22%2CVal33%0AVal111%2CVal222%2CVal333">Download CSV</a>
However, the downloaded file does not have a name. I saw some solutions in stackoverflow where the download attribute can be used, but I need to support older browsers, so I cannot use this.
source
share