I want to export the HTML page to XLS using java script . I am able to do this in the following way using Active X in IE .
window.clipboardData.setData("Text", vTable);
var objExcel = new ActiveXObject("Excel.Application");
objExcel.visible = false;
var objWorkbook = objExcel.Workbooks.Add;
var objWorksheet = objWorkbook.Worksheets(1);
objWorksheet.Paste;
objExcel.visible = true;
and following code is for MOzilla and Chrome
var url='data:application/vnd.ms-excel,' + encodeURIComponent($('#divExport').html()) ;
location.href=url;
But I want to know if there is a way that will work on all 3 latest version of browsers for creating XLS ?