title: How do I export a form table in excel file format using javascript
body: <p>Below is my table</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;display:table name="analyticBeans" id="user" export="true" style="width:750px" sort="list" requestURI="/generatePerformanceReport.htm"&gt;
       &lt;display:caption&gt;&lt;b&gt;Assessment Name : ${assessment.assessmentName}&lt;/b&gt;&lt;/display:caption&gt;
       &lt;display:column property="id" title="Sr No." headerClass="sortable" class="srNo" /&gt;
       &lt;display:column property="firstName" title="Name" headerClass="sortable" class="pgmkey" /&gt;
       &lt;display:column property="markObtain" title="Marks Obtained" headerClass="sortable" class="pgmkey" /&gt;
       &lt;display:column property="assessmentTotalMarks" title="Total Marks" headerClass="sortable" class="pgmkey" /&gt;
       &lt;display:column property="subject" title="Subject" headerClass="sortable" class="pgmkey" /&gt;
       &lt;display:setProperty name="export.pdf" value="true" /&gt;
       &lt;display:setProperty name="export.pdf.filename" value="PerformanceReport.pdf" /&gt;
  &lt;/display:table&gt;
  &lt;input type="button" id="btnExport" onclick= "generateexcel()"&gt;Click for Save&lt;/input&gt;</code></pre>
  </div>
  </div>
  </p>