title: Retrieving data from Excel by JavaScript using IE, FF and Chrome
body: <p>I have an excel file named test.xls. The following JS code retrieve data from Excel in Internet Explorer well. But I want to use Firefox as well as Chrome. What's the code for FF and Chrome?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;
  Style Get data from excel sheet
  &lt;/title&gt;
  &lt;script language="javascript" &gt;
    function GetData(cell,row){
    var excel = new ActiveXObject("Excel.Application");
    var excel_file = excel.Workbooks.Open("F:\\test.xls");
    var excel_sheet = excel.Worksheets("Sheet1");
    var data = excel_sheet.Cells(cell,row).Value;
    document.getElementById('div1').innerText =data;
    }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;div style="background: #009955; width:'100%';" align="center"&gt;
    &lt;font color="#000080" size="12pt"&gt;
  &lt;b&gt;Get data from excel sheets&lt;/b&gt;
    &lt;/font&gt;
  &lt;/div&gt;
  &lt;center&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;div id="div1" style="background: #DFDFFF; width:'100%';" align="center"&gt;
  Click buttons to fetch data from F:\\test.xls
  &lt;/div&gt;
  &lt;input type="button" value="cell(1),row(1)" onClick="GetData(1,1);" /&gt;
  &lt;input type="button" value="cell(1),row(2)" onClick="GetData(1,2);" /&gt;
  &lt;input type="button" value="cell(2),row(1)" onClick="GetData(2,1);" /&gt;
  &lt;input type="button" value="cell(2),row(2)" onClick="GetData(2,2);" /&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>