Currently, I am utilizing angularjs to export data into excel from an uploaded table. Here is the code snippet I am using:
function (e)
{<br>
window.open('data:application/vnd.ms-excel,' + encodeURIComponent($('div[id$=exportable]').html()));<br>
e.preventDefault();
While this code successfully enables file download, it lacks a file extension. Could someone provide me with guidance on how to modify both the file name and extension?
Thank you.