title: Export HTML table from an iframe to CSV
body: <p>I'm trying to look for a script (with no progess) that could export an HTML table that I am able to get from an iframe. The table is inside the iframe and I can get and display its contents on my parent document. </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function myFunction() {
      var myIFrame = document.getElementById("myIframe");
      var content = myIFrame.contentWindow.document.getElementById("table").innerHTML;
      alert(content);
      // suggestions here to export the table to CSV
     }
  &lt;/script&gt;
  </code></pre>
  
  <p>I am not asking you to write the code for me. I would appreciate if someone could point me to the right direction.</p>