title: exporting html tables to ms word
body: <p>I have a html table in this format:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>And I have a download button:</p>
  
  <pre><code>&lt;input type="text" name="download" value="Download"&gt;
  </code></pre>
  
  <p>I need this table to be exported/downloaded in ms word format when user clicks on the Download button. Please help me with the codes to achieve this.
  Thanks in advance</p>