title: Create simple xlsx (excel file ) from javascript or Jquery
body: <p>This is the fiddle <a href="https://jsfiddle.net/ym4egje0/" rel="nofollow noreferrer">https://jsfiddle.net/ym4egje0/</a> </p>
  
  <p>I have two things to ask </p>
  
  <ol>
  <li><p>this is creating a xls , how to create a xlsx file and it does not work in IE , only works in google chrome , how to make it work in IE ?</p></li>
  <li><p>I want to put  <code>ColumnHead</code> column header text and message1 and message2 should be consecutive rows . </p></li>
  </ol>
  
  <p>Have to take as the index of (.) to cut into rows  .</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;input id="btnExport" type="button" value = "Generate File" /&gt;
  </code></pre>
  
  <p>JS/Jquery</p>
  
  <pre><code>$("#btnExport").click(function (e) { 
  
  var ColumnHead = "Column Header Text";
  var Messages = "\n message1.\n message2.";
     window.open('data:application/vnd.ms-excel,' + Messages);
      e.preventDefault();
  
  });
  </code></pre>