title: grab svg text value with javascript
body: <p>UPDATED:</p>
  
  <p>so let me use the actual code.... I have this javascript...</p>
  
  <pre><code>window.writeText = function(form) {
    var text;
    form.catnumber2.value = "PING";
    text = document.getElementByName('cat2Number').innerHtml;
    return alert(text);
  };
  </code></pre>
  
  <p>But I get no alert box as expected.</p>
  
  <p>The svg does not show up when I view source via view/developer/view source (I'm in chrome) BUT when I use view/developer/developer tools....I can see the following svg....</p>
  
  <pre><code>&lt;svg height="594"&gt;
      &lt;g ID="MasterG"&gt;
          &lt;text name="cat2Number"&gt;"$1234"&lt;/text&gt;
      &lt;/g&gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>Any idea what I'm doing wrong? Why is it I can't see the svg code in "view source" but I can in "developer tools" ? Is that the cause of my problem? Is that why my alert box won't "alert"?</p>