ASP:label and javascript getElementById
<p>I'm trying to get the value of the <code>Text</code> property of an <code>asp:label</code> with Javascript's <code>document.getElementById</code> method, using the following code</p>

<pre><code>&lt;asp:Label ID="lblThis" runat="server" Visible="False" Text="this is a label" /&gt;
&lt;script type="text/javascript" language="javascript"&gt;
    var lblThis = document.getElementById('&lt;%= lblThis.ClientID %&gt;')
    var lblThisText = lblThis.innerText
    alert(lblThisText)
&lt;/script&gt;
</code></pre>

<p>When I open the page, nothing happens.  I am not a javascript guy, so I have no idea where I'm going wrong.  I also am not trying to set any properties here, just read the value of an <code>asp:label</code> into javscript.</p>

<p>Any tips, pointers, or help given is appreciated.</p>

<p>UPDATE</p>

<p>I have replaced <code>Visible="false"</code> with <code>style="display:none"</code> as per <a href="http://stackoverflow.com/a/11264150/312777">Mennan's answer</a>, and now get an alert with "undefined".  The right direction, but I'm still not there yet.</p>

<p>UPDATE</p>

<p>I have a working chunk of code now.  <code>innerText</code> had nothing, but <code>innerHTML</code> had the right string.  Correct code:</p>

<pre><code>&lt;asp:Label ID="lblThis" runat="server" style="display:none" Text="this is a label" /&gt;
&lt;script type="text/javascript" language="javascript"&gt;
    var lblThis = document.getElementById('&lt;%= lblThis.ClientID %&gt;')
    var lblThisText = lblThis.innerHTML
    alert(lblThisText)
&lt;/script&gt;
</code></pre>
