open you can use a link with the onclick event. And you can put the html table into the uri and set the file name to be downloaded. TableExport - The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files. You can use a library like ShieldUI to do that.