title: How do I make this getElementsbyName work for IE (and FF)?
body: <p>This is the JavaScript that is errored on in IE but works in FF (error - "document.getelementsbyname(...).0.innerhtml is null or not an object":  </p>
  
  <pre><code>var oldVal = parseInt(document.getElementsByName("outSL")[0].innerHTML); //val from DB
  </code></pre>
  
  <p>This is the asp.net code where I want to grab the inner html that will be filled in by the database:</p>
  
  <pre><code>&lt;asp:Label ID="LabelSL" runat="server" Text="" name="outSL" style="visibility:hidden;"&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>The id is dynamic, when it is rendered it looks like this, where it is the 43 I am after:  </p>
  
  <pre><code>&lt;span id="ctl00_cpMainContent_LabelSL" name="outSL" style="visibility:hidden;"&gt;43&lt;/span&gt;  
  </code></pre>
  
  <p>So...how can I get that 43 in IE and FF with the same function?</p>
  
  <p>Thank You!</p>