How to export HTML table to Excel in JavaScript?
go to http://msdn.microsoft.com/ for more help, it's the official documentation.
In order to export HTML tables to Excel in JavaScript, I suggest you use ExcellentExport.js v1.4 developed by Jordi Burgos. It helps you to export the tables automatically in the browser. The tool works only with Mozilla Firefox and Google Chrome because Internet Explorer does not allow to use URL data schema on links.