title: Full calendar to Excel and .pdf
body: <p>I am using jQuery full calendar. I want to export full calendar HTML to Excel and .pdf. I have below code in order to achieve <strong>exporting to Excel</strong>:</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div id='calendar'&gt;&lt;/div&gt;
  
  &lt;input type="button" id="btnExportToExcel" value="Export to excell" onclick="ExportToExcell()" /&gt;
  </code></pre>
  
  <p><strong>JavaScript:</strong></p>
  
  <pre><code>function ExportToExcell() {
  
          window.open('data:application/vnd.ms-excel,' + $('#calendar').html());
          e.preventDefault();
  
      }
  </code></pre>
  
  <p>However above code is not working for me in order to export to Excel.</p>
  
  <p>How can I export full calendar HTML to Excel and .pdf?</p>