title: Send table variable as mailto subject
body: <p>I am trying to pass a table variable as a mailto subject. </p>
  
  <p>I am using this script to do for a div ID, but unsure how to to do this for a class - <code>getElementsByClassName</code> doesn't work. How Do I do this?</p>
  
  <p>Button:</p>
  
  <pre><code>&lt;button name="mail_button" onclick="mail_content()"&gt;Mail&lt;/button&gt; 
  </code></pre>
  
  <p>Script: </p>
  
  <pre><code>function mail_content() {
      var tableContent = document.getElementById("mailcontent").innerHTML;
      var mBody = "" + tableContent + "";
      document.location.href = "mailto:test@domain.com?subject=Titel&amp;body=" + mBody;  
  }
  </code></pre>
  
  <p>Element I wish to fect the varable from: </p>
  
  <pre><code>&lt;td class="mailcontent"&gt;N7P47AA&lt;/td&gt;
  </code></pre>