TableExport
The simple, easy-to-implement library to export HTML tables to xlsx
...In order to provide Office Open XML SpreadsheetML Format ( .xlsx ) support, you must include the following third-party library in your project before both FileSaver.js and TableExport. To support legacy browsers ( Chrome < 20, Firefox 13, Opera 12.10, IE, 10, Safari 6 ) include the Blob.js polyfill before the FileSaver.js script. Additional properties can be passed-in to customize the look and feel of your tables, buttons, and exported data. Notice that by default, TableExport will create export buttons for three different filetypes xls, csv, txt. You can choose which buttons to generate by setting the formats property to the filetype(s) of your choice.